I was recently trying to request user to dismiss key-guard manually from my app. My app invokes a activity screen when device is locked and the screen has the flags
FLAG_SHOW_WHEN_LOCKED
FLAG_TURN_SCREEN_ON
When I have to invoke another screen which does not have these flags I want to request the user to unlock the key-guard, this behaviour can be seen in the the camera app - when we want to share a photo taken while phone is locked it will request us to unlock the device.
requestDismissKeyguard() method works only for api26 and above any alternatives for the lower apis ??