title: How to prevent or handle onResume being called when phone screen is locked?
body: <p>By default my app is set to orientation landscape. This is causing an issue when the device is locked because the orientation will change to portrait (to accommodate the locked screen) which in turn forces onResume to be called. When this happens all objects are null making the app vulnerable to crashes. I have made changes that prevent crashes and the app works 'ok'. OK meaning that when you return to the app from lock screen, for half a second the UI is in portrait orientation before snapping to the proper orientation.</p>
  
  <p>Things I have done to resolve</p>
  
  <p>i. Added null checks on all objects that would otherwise never be null in onResume</p>
  
  <p>ii. Added <code>android:configChanges="orientation|screenSize"</code> in manifest</p>
  
  <p>iii. Added <code>android:screenOrientation="landscape"</code> in manifest</p>
  
  <p>What else can be done to make the transition from lock screen back into my app smoother, with no blips, blinks, or orientation changes?</p>