Bootstrap

Disable (initial) screen lock

  1. KeyguardManager keyguardManager = (KeyguardManager)getSystemService(Activity.KEYGUARD_SERVICE);  
  2. KeyguardLock lock = keyguardManager.newKeyguardLock(KEYGUARD_SERVICE);  
  3. lock.disableKeyguard();  
  4.   
  5.   
  6. in androidmanifest:  
  7. <uses-permission android:name="android.permission.DISABLE_KEYGUARD" ></uses-permission> 
;