Examples of inKeyguardRestrictedInputMode()


Examples of android.app.KeyguardManager.inKeyguardRestrictedInputMode()

    // the user to the activity list page, which will in turn return the user
    // to the login page, requiring the user to enter his password again before
    // get access again to his secrets.
    KeyguardManager keyGuard = (KeyguardManager) getSystemService(
        KEYGUARD_SERVICE);
    if (keyGuard.inKeyguardRestrictedInputMode())
      finish();
  }

  /**
   * Formats a string that represents the elapsed time since the log entry
View Full Code Here

Examples of android.app.KeyguardManager.inKeyguardRestrictedInputMode()

    // If the key guard has been displayed, exit this activity.  This returns
    // us to the login page requiring the user to enter his password again
    // before getting access again to his secrets.
    KeyguardManager key_guard = (KeyguardManager) getSystemService(
        KEYGUARD_SERVICE);
    boolean isInputRestricted = key_guard.inKeyguardRestrictedInputMode();
    if (isInputRestricted) {
      Log.d(LOG_TAG, "SecretsListActivity.checkKeyguard finishing");
      finish();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.