title: Application Level onResume Android
body: <p><strong>Problem</strong></p>
  
  <p>The idea is very simple. Whenever an user comes back to my app from the Recents I want to show a simple dialog prompting with the password.</p>
  
  <p>I know how to prompt the dialog with password, but my problem is how do I understand that the user has entered my app from the recents. If I put the prompt in the onResume in every activity, then it will get triggered everytime even if the user doesn't enter from the Recents menu.</p>
  
  <p>There are lots of activities and fragments in my app. So, I would love to have a more generic or application level solution.</p>