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

then I re-launch my app and call bindService() - a *new* service is
created (at least my service's constructor is called).  what I don't
understand is why it doesn't simply attach to the existing service
(because it's been destroyed??  but it's still running... ??).

then my follow up question is: should i then make my service a
singleton, or at least point to a singleton so when it's re-created I
can point to the one that exists?

tia.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to