2014-01-31 dashman <erjdri...@gmail.com>:

>
> What's confusing is this.
>
> I've got the app and service running.
>
> Then using the active app-list option of the launcher, I remove the app.
>
>
> I would think this would kill the app - but not the service.
>
> Service.onDestroy() is not called.
>
>
> But now if I restart the app - the Service.onCreate() is called
>
>
Sounds like your app's process gets killed. When this happens, the
service's onDestroy will not be called.

Next when you start the app's UI (activity), the process is created again,
and the service is too.

You can watch this in the logcat, and for more details, use system settings
-> apps -> running, or "adb shell ps", where "ps" is the standard Unix
command that gives the list of running processes.

-- K

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to