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 android decides it's low on system > resources and kills it).
How do you know that "the service is still alive"? If it is because you have a background thread, you need to stop that background thread in onDestroy(). Otherwise, the service object, while detached from Android, will live until the thread terminates, or until Android force-closes your process due to lack of memory. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

