[android-developers] Phone Unlocked Notification
Is there any way to receive an event when the phone is unlocked? I
know there is a way to query at a specific point in time for whether
the screen is locked or not via:
KeyguardManager k =
(KeyguardManager)this.context.getSystemService("keyguard");
if (k.inKeyguardRestrictedInputMode()) {
inLockScreen = true;
} else {
inLockScreen = false;
}
But really I don't want a polling mechanism. I would like to know if
there is some sort of system broadcast just like the Boot Complete
broadcast.
Thanks!
Nik Bhattacharya
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home