Package android.app

Examples of android.app.KeyguardManager


  private void checkKeyguard() {
    // If the keyguard is being displayed, exit this activity.  This returns
    // 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();
  }
View Full Code Here


   */
  private boolean checkKeyguard() {
    // 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

Related Classes of android.app.KeyguardManager

Copyright © 2018 www.massapicom. 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.