That is not what those APIs are for, they are for temporarily hiding the key lock so that things like the in-call screen can be shown.
Replacing the lock screen as a third party app is just not supported right now, sorry; you'll need to modify the platform to do a decent implementation, I think. On Wed, Apr 22, 2009 at 9:21 AM, dilit <dmit.lit...@gmail.com> wrote: > > Seems like android.app.KeyguardManager.KeyguardLock > should do this. lock.reenableKeyguard() to lock and > lock.disableKeyguard() to unlock. > > The only issue is that calling reenableKeyguard() on the the locked > phone may > put it in the wrong state (vice versa for disabling). Could be an API > bug ... > > Thanks > > On Apr 21, 8:17 pm, dilit <dmit.lit...@gmail.com> wrote: > > We are writing an app to substitute screen/pattern lock on G1. > > Unfortunately, it is impossible to substitute the original screen lock > > app > > with a 3rd party one. > > > > The only option left is if we can UNLOCK the phone from a service > > running in the background when G1 is locked. > > Is it possible? > > Is there interface to Pattern/Screen lock? > > What is KeyguardManager for? > > > > Thanks! > > Dmitriy > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---