title: Android: How to know activity/service killed by advanced task killer?
body: <p>I just want to know how detect that the activity or service has been killed by the advanced task killer? I was expecting the onDestroy method to be called, but it doesnt! </p>
  
  <p>My app starts the background service on boot. The activity is not started except from menu. But its name appears in the advanced task killer list. When I try to kill it, it doesnt call the onDestroy method neither the service's.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance.</p>