On Sat, Mar 5, 2011 at 11:30 AM, pedro242 <[email protected]> wrote:
> So if my most important client gets stopped and goes in the background
> (or even worse, is destroyed), the Service process is then ranked in
> the same way??

If your activity is no longer in the foreground (e.g., user presses
HOME), then it and its service are not considered a high-priority
process.

If your activity is destroyed (e.g., user presses BACK, Android
destroys the background activity to free up RAM), then your service
will be destroyed, because you should have unbound from the service
when your activity is destroyed. Please do not attempt to bind to
services then leak them by never unbinding them.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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

Reply via email to