I'm playing with building a simple alarm, but it's very hard to see
how to get a nice UI interaction when the phone is asleep.

 I have finally worked out an OK behaviour:

a) Use the AlarmManager to set a time to wake up my application
b) use a KeyguardManager.KeyguardLock to disable the lock
c) pop up an AlertDialog with an "OK your alarm has gone off"
button
d) turn back on the Keyguard lock.

 But it's klunky in that the user can hit a pocket OK and clear an
alarm once the KeyguardManager is off. And as soon as the user exits
my alarm application, I turn the keyguardManager lock back on and I'm
locked out.

 The interaction sequence on the iPhone is a bit better in that I can
pop up a window (play alarms and so on) and the user has to log in to
unset the alarm.

 Does anyone know how to get a better user interaction on the gphone?

 And while playing with this I can see a service logging called
KeyguardViewMediator but there is no documention or group posts on
this. Is this what is really acting as the keyguard?

 Are there any examples of this hanging around?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to