Hello I have a service that starts on boot on my android device,the service is started using startService command so it runs saperatelly from the UI, I would like to be notified when the service is killed from the OS or from the task manager so I can be able to saffelly save my data, I have override the onDestroy method but when the service is killed by the task manager the code on the onDestroy method is not executed!
Can I be notified when someone tries to kill my service and how? regards maxsap.