Below is excerpted from http://developer.android.com/reference/android/app/KeyguardManager.html
public boolean isDeviceLocked ()
Returns whether the device is currently locked and requires a PIN, pattern or password to unlock. Returns true if unlocking the device currently requires a PIN, pattern or password.
public boolean isKeyguardSecure ()
Return whether the keyguard requires a password to unlock. Returns true if keyguard is secure.
What's the difference between isDeviceLocked
and isKeyguardSecure
?
true
. If you have a PIN or pattern, justisDeviceLocked
returnstrue
and if you have no lock, both returnfalse
. I guessisKeyguardSecure
has its function because PIN and pattern can be bypassed more easily. – DevindevinaisDeviceLocked()
withisKeyguardSecure()
? The pendant toisDeviceLocked()
isisKeyguardLocked()
, the *keyguard api being older and also taking SIM Pin into account. – Siva