title: Android Activity Lifecycle With/Without Lock-screen
body: <p>I'm trying to find out what the difference is in the activity lifecycle when a lock-screen is enabled versus disabled.</p>
  
  <p><strong>Scenario A (no lock-screen)</strong> </p>
  
  <ul>
  <li>App is running</li>
  <li>power button is hit to turn display off</li>
  <li>power button is hit to turn display on</li>
  <li>App is immediately resumed</li>
  </ul>
  
  <p><strong>Scenario B (lock screen enabled, swipe to unlock)</strong></p>
  
  <ul>
  <li>App is running</li>
  <li>power button is hit to turn display off</li>
  <li>power button is hit to turn display on</li>
  <li>Swipe screen to unlock</li>
  <li>App is resumed (but we are getting a bug in the display, which is where we are trying to find the difference)</li>
  </ul>
  
  <p>I have printed out the activity lifecycle for both scenarios and they show up identical for both scenarios.</p>
  
  <p>What might be the difference in the lifecycle that would cause this different behavior when using lock-screen versus no lock-screen?</p>