Hello. Part of the app I'm writing is a Service that does some work. If it hasn't finished when the user switches the device off I'd like to be able to save my state to a file and then restart the Service when the device starts up again.
I can see how to start it up again (receive the ACTION_BOOT_COMPLETED Intent), but I can't figure out a way to run the saving code on shutdown. I was expecting my Service's onDestroy() to be called, but this doesn't seem to be the case. Thanks. -- Jon --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---