 <p>You could look into <a href="http://developer.android.com/reference/android/app/Application.html#registerActivityLifecycleCallbacks%28android.app.Application.ActivityLifecycleCallbacks%29" rel="nofollow"><code>Application.registerActivityLifecycleCallbacks()</code></a> &amp;c.</p>