[android-developers] Re: Screen/Pattern Lock application invocation

2009-05-18 Thread andrew
You can use the method "disableKeyguard" of KeyguardManager.KeyguardLock,in your program after it is locked. If the screen if locked,but you want you activtiy to display on top,you can use disableKeyguard to hide the locked screen,then if you have done something in your program,use reenableKeyguar

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-21 Thread dilit
Apologize for the confusion. I meant to ask how I can UNLOCK the phone from inside a program after it is locked with a screen lock? Is there interface to Pattern/Screen lock? What is KeyguardManager for? Thanks! D --~--~-~--~~~---~--~~ You received this message be

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-21 Thread dilit
Mark, Calling System.Settings.putInt(getContentResolver(), System.Settings.LOCK_PATTERN_ENABLED, 1); System.Settings.putInt(getContentResolver(), System.Settings.LOCK_PATTERN_VISIBLE, 1); on emulator does not seem to activate the pattern, even after having configured the lock pattern. Later I cal

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-21 Thread Mark Murphy
dilit wrote: > Can you tell me what classes would allow me to disable the lock from > within the program? > Is it KeyguardManager, KeyguardLock? It is android.provider.Settings.System -- you want the LOCK_PATTERN_ENABLED setting. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://tw

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread dilit
Can you tell me what classes would allow me to disable the lock from within the program? Is it KeyguardManager, KeyguardLock? Thanks On Apr 20, 7:48 pm, Mark Murphy wrote: > dilit wrote: > > Thank you very much for the prompt reply! > > The only thing that can salvage our idea is if we can open

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread Mark Murphy
dilit wrote: > Thank you very much for the prompt reply! > The only thing that can salvage our idea is if we can open > the screen lock programmatically. Is that possible? With the proper permissions, you can disable the screen lock. > Can we know within the program, if screen lock is on? andr

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread dilit
Thank you very much for the prompt reply! The only thing that can salvage our idea is if we can open the screen lock programmatically. Is that possible? Can we know within the program, if screen lock is on? What user events can we capture from behind the screen lock? Could you stir us in the ri

[android-developers] Re: Screen/Pattern Lock application invocation

2009-04-20 Thread Dianne Hackborn
You can't do this with the SDK, sorry. On Mon, Apr 20, 2009 at 8:54 AM, dilit wrote: > > Hello, > > We are writing our own application to substitute G1 standard screen > lock (where you have to draw a pattern between the dots on the > screen). Unfortunately, I have been unable to find document