How do i know whether android application explicitly killed by user or not?
<p>I have an application which uses some resources internally. </p>

<p>Problem : if user explicitly removes application from recent apps list, it kills the entire application but i must close resources when application is killed explicitly.</p>

<p>Is there any callback method is calling when application is closed by the user ?</p>
