I have an application that requires detection of a previous key protection state before calling disableKeyguard() or reenableKeyguard() set by the user! is there any way to accomplish this task?
disableKeyguard()
reenableKeyguard()
From the documentation
Use
((KeyguardManager)getSystemService(Context.KEYGUARD_SERVICE)).isKeyguardLocked()