Code example for KeyguardManager.KeyguardLock

Methods: disableKeyguard, reenableKeyguard

0
            msg.show();
        } else { 
            getLock(context);
            if (mLock != null) {
                if (LOCK_SCREEN_STATE) {
                  mLock.disableKeyguard();
                  LOCK_SCREEN_STATE = false;
                } else { 
                  mLock.reenableKeyguard();
                  LOCK_SCREEN_STATE = true;
                } 
            } 
        } 
 
        // we're handling this, so just update our buttons now 
        // this is UGLY, do it better later >.> 
        update(); 
    } 
 
    private KeyguardLock getLock(Context context) {
        if (mLock == null) {