Notify the Service if the Activity is Down <p>Sometimes my app crashes for some reason and I have no control over it. I want to let the service know when the app crashes and do some other process.</p> <p>Is it possible to do that?<br> By the way, starting from Lollipop, <code>getRunningTasks</code> is deprecated.</p> <p>Thanks.</p>