How to know when the user has closed the Android application?
<p>Is there any way of finding when an application is closed (either by user or system) i.e the application can only be restarted by the user by pressing the application launcher icon.</p>

<p>I think it is only possible if Android system broadcast any Intent when a name of a process is removed from <a href="http://pages.citebite.com/q8d0d8f8ouey" rel="nofollow">getRunningAppProcesses()</a>.</p>

<p>I have read all the possible Q&amp;A on the SO and the question is not related with the ActivityLifecycle. </p>
