When I shut down my android app, I would like to stop an another app.
To realize this behavior, I thought to catch an event (e.g. onDestroy on my activity or my background service) and to send a message to my oher app that signal it to stop.
My problem is that no onDestroy events are triggered.
Is there an event triggered by android when an app is shut down?