If the device is locked and the activity is started from the background (e.g. starting debug from IDE), an exception is thrown in the onStart method. The application is still running but the screen is black.
Lock device
Run app in IDE
Unlock device: screen is black
Expected Behavior
Camera should be visible
Actual Behavior
When device is unlocked the screen is black and you can see the exception in logcat.
Is this a bug report?
yes
Have you read the Contributing Guidelines?
yes
Environment
Android 9, HMD Global Nokia 7 plus
Steps to Reproduce
If the device is locked and the activity is started from the background (e.g. starting debug from IDE), an exception is thrown in the onStart method. The application is still running but the screen is black.
Expected Behavior
Camera should be visible
Actual Behavior
When device is unlocked the screen is black and you can see the exception in logcat.
Reproducible Demo
error log Activity