Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

Android disable keyguard

By: a guest on Aug 10th, 2011  |  syntax: Java  |  size: 0.19 KB  |  views: 390  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. KeyguardManager mKeyGuardManager = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);
  2. KeyguardLock mLock = mKeyGuardManager.newKeyguardLock("Springboard");
  3. mLock.disableKeyguard();
clone this paste RAW Paste Data