KeyGuard/Turning screen lock on and off

Ronny

Member
Licensed User
Longtime User
Hi

I need a way to turn the screen lock off and on in my app (when the app is listening for events, in the background). I have tried to use the Reflector Library to access the functions found here:

KeyguardManager.KeyguardLock | Android Developers

I'm totally new to Java and did not manage to get this to work. The idea is to turn the screen lock off/disable when in my own home.

Any and all help is appreciated :)
 
Top