I have a service running in its own process. It appears fine in the evening, but after I’ve gone to sleep I think Android takes its axe to it.
Am I right in thinking that onDestroy() won’t be called when Android kills a service? If not, is there any other place the kill is registered?
I think I’m going to need to research the AlarmManager.
Why is it in its own process?
It may, it may not.
No.
Users hate services that live forever, which is why task killers are popular. They hate services that run in their own process even more, because they consume extra RAM, CPU, and battery, typically for no good reason.
If your objective is to do something on a periodic basis, please use
AlarmManager— that’s why it is there.