Disable (initial) screen lock

KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE);
KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE);
lock.disableKeyguard();


in androidmanifest:
<uses-permission android:name="android.permission.DISABLE_KEYGUARD"></uses-permission>



1 Comment

#
harishkumar - August 4, 2009 at 6:53 p.m.

Marcus,

in which file, do i need to modify.
can i get the full source code.
i am having android on our custom board.
i need to disable keylock during booting-up.

Thanks and Regards,
HarishKumar.V

Add a Comment