On Tue, Oct 19, 2010 at 5:33 PM, saex <[email protected]> wrote: > then, if my application is not a service, when it goes to background > (home key pressed for example), it continues working (sending/getting > data from internet)? >
Only from pure luck. There is no guarantee. You must assume it will be killed as soon as it goes in the background. If you want to do specific work while in the background, a Service is the way to go. It really isn't that hard. If you are just doing something like a web browser continuing to download a web page in the background, there is no need for a service, since it is actually good to have that work killed if the system needs the process's resources for something else the user is now doing in the background. -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

