title: Determine when the app becomes active from minimized to foreground - Android
body: <p>I am trying to trigger an unlock screen when the app goes from the background to the foreground.</p>
  
  <p>All my activities are extending a base class which overrides onPause + onResume.</p>
  
  <p>The <strong>problem</strong> with <strong>onPause</strong> is that this method gets called even when you launch a new intent.</p>
  
  <p>What is a reliable way of determining when an app becomes <strong>active</strong>?</p>
  
  <p>Regards,</p>
  
  <p>Tim</p>