Call onDestroy() of Service
I want to call onDestroy() method of Service in android. I already searched a lot on internet and many answers are like if service force stop or somehow its onDestroy() will never call. But I really need to know when service is stop. My project is about music player. So it uses service and there is ongoing notification. I need to find out when service stop? and need to stop music and remove notification. But it never show any log of onDestroy(). Can anyone help me what is the alternative for it? if not onDestroy() then which method and how? Edit: I dont want to call ondestroy explicitly. I