[android-developers] Can a Service be 'Killed' Without Process Being Killed?
The Android documentation says this:
http://developer.android.com/guide/topics/fundamentals/services.html
"The Android system will force-stop a service only when memory is low
and it must recover system resources for the activity that has user
focus. If the service is bound to an activity that has user focus,
then it's less likely to be killed, and if the service is declared to
run in the foreground (discussed later), then it will almost never be
killed"
Is this talking about a Service that is in the same process as the
aforementioned Activity (local Service), or a different process
(remote Service)? I assume this refers to a Service in the same
process, which then means that a Service can be 'killed' (maybe better
term is 'stopped') by Android without its process (and thus associated
Activity) also being killed. Is this correct? Or is the
documentation referring to a Service in another process? It makes
more logical sense to me that Android would only 'kill' a Service by
killing the process the Service is in, but this documentation makes me
wonder if that is incorrect.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home