Code example for KeyguardManager

Methods: exitKeyguardSecurely, inKeyguardRestrictedInputMode

0
		}*/ 
	} 
	public void SetKeygPolicy(Window wnd, boolean disableKeyg) {
		if (disableKeyg)
		{ 
			 if (mKeyguardManager.inKeyguardRestrictedInputMode()){ 
				 mKeyguardManager.exitKeyguardSecurely(new KeyguardManager.OnKeyguardExitResult(){ 
                         public void onKeyguardExitResult(boolean success) { 
                                 if (success){ 
                                         Log.d("FLIS DEBUGS", "onKeyguardExitResult success"); 
                                 } else {  
                                         Log.d("FLIS DEBUGS", "onKeyguardExitResult ! success"); 
                                 }  
                         }  
                 });  
                 Log.d("FLIS DEBUGS", "inKeyguardRestrictedInputMode - disableKeyguard"); 
         } 
			mKeyguardLock.disableKeyguard();
		} 
		else 
			mKeyguardLock.reenableKeyguard();