Tuesday, July 12, 2011

Lock the Android phone with a password


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

lock.reenableKeyguard();
android.permission.DISABLE_KEYGUARD

No comments:

Post a Comment