title: Does Android have the iOS option 'application does not run in background'?
body: <p>I want to move from current page to login page in my app when clicking the Home Button (not recent button).</p>
  
  <p>It is controlled by the option in iOS (application does not run in background to 'YES').</p>
  
  <p>I don't know how to control it in Android. </p>
  
  <p>I try this:</p>
  
  <ol>
  <li>onDownKey (not working when clicking Home &amp; Recent, but back button works well.)</li>
  <li>onPause or onUserLeaveHint (I already controlled others in these methods, so I can't use it)</li>
  <li>dispatchKeyEvent (also not working)</li>
  </ol>