I have an application that requires to detect the previous state of the key-guard before calling disableKeyguard()
or reenableKeyguard()
, set by the user! is there any way of accomplishing this task?
From documentation
Use
((KeyguardManager)getSystemService(Context.KEYGUARD_SERVICE)).isKeyguardLocked()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With