Your understanding is wrong - your service can be killed at any time without onDestroy being run. I'm not actually sure why onDestroy even exists in this case, I found it was much more common for the kernel to OOM kill my process than it was for the AM to nicely request my service to quit. Don't save state in onDestroy, if you need to, checkpoint state in the service. It'll just be tears in the long run if you don't.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

