The solution is to setup a BroadcastReceiver
that is listening for the SCREEN_ON
-Event. I did this one inside a backgroundservice
that was waiting for at least two SCREEN_ON
-Events within a short period of time. (less than two events obviously can't work)...
The Service
then dismissed the Keyguard
and was able to even pass past password/gesture and run the App. Funny fact: closing the app does pop back to desktop still beeing logged in.
I did this at Android 4.2
.. Sources told me that dismissing the keyguard is not working with current Android-versions no more.