title: Popup verify native password android
body: <p>I want the user type is password and press the Ok button, and then will be a check whether this really is the device's password. if it is so the app will be close and if not pop up try again.</p>
  
  <pre><code>  new MaterialDialog.Builder(Finished.this)
                      .title("To exit enter your phone password")
                      .inputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD)
                      .positiveText(R.string.ok)
                      .negativeText(R.string.cancle)
                      .input(R.string.input_hint, Integer.parseInt(""), new MaterialDialog.InputCallback() {
                          @Override
                          public void onInput(MaterialDialog dialog, CharSequence input) {
                              // Do something
                          }
                      })
                      .callback(new MaterialDialog.ButtonCallback() {
                          @Override
                          public void onPositive(MaterialDialog dialog) {
                              onBackPressed();
                          }
                      })
                      .show();
  </code></pre>