This is the scenario…
- App is opened
- User clicks on a button that starts a service.
- User presses home key and then long presses home key and clears application from task list.
- Service continues to run, although app has closed.
How from the runnning service can I determine whether that app has been killed or not? Is this possible?
I think this what you are looking for:
The only thing you need to provide is full launcher activity class name of your app.