Android Question Check to see if the screen is locked.

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hi all

does anyone know how to check if the screen is locked. I already now how to unlock it and the intent's SCREEN_ON/OFF are protected.

So, I guess a bit of reflection, maybe?

Regards

John.
 

Jmu5667

Well-Known Member
Licensed User
Longtime User
I have a service that runs when the app is not in the foreground, and is killed when then app is in the foreground, so I just check to see if the service is running or not, and it works a treat !
 
Upvote 0
Top