How can I display an Activity to be visible over the lock screen/ allow my app to open over the lockscreen when the app is dragged up from a quick placement on but go back to lockscreen when home button is hit? Sort of how the camera does not need a password to be accessed from the lockscreen?
My activity is visible after I unlock the device.
I have tried using
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON|
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD|
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED|
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
and have set the required permissions in the manifest however this doesn't seem to be working. Any ideas?