[android-developers] Re: local service lifecycle...

2009-09-10 Thread Mark Murphy
sdphil wrote: > by the way, is there any way to know when Android is about to "force- > close" your process / service? Not really. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~

[android-developers] Re: local service lifecycle...

2009-09-10 Thread sdphil
by the way, is there any way to know when Android is about to "force- close" your process / service? On Sep 10, 4:24 am, sdphil wrote: > based on some other posts I have seen, I created a static variable > inside my service class and I initialize it to false.  when the > service is created, I se

[android-developers] Re: local service lifecycle...

2009-09-10 Thread Mark Murphy
sdphil wrote: > based on some other posts I have seen, I created a static variable > inside my service class and I initialize it to false. when the > service is created, I set it to true. > > public class MyService extends Service { > private static boolean running = false; > ... > ... >

[android-developers] Re: local service lifecycle...

2009-09-10 Thread sdphil
based on some other posts I have seen, I created a static variable inside my service class and I initialize it to false. when the service is created, I set it to true. public class MyService extends Service { private static boolean running = false; ... ... @Override public vo

[android-developers] Re: local service lifecycle...

2009-09-10 Thread Mark Murphy
sdphil wrote: > i have a local service (based on LocalService). > > when I start my app, the service gets created. > > when I back out of my app (continuing to hit "back" until I get to the > desktop), my service's onDestroy() gets called, but the service is > still alive (presumably until andro