private void markDialogAsResultOfSaveKeyIntent(Dialog dialog) {
    dialog.setOnDismissListener(
        new OnDismissListener() {
          @Override
          public void onDismiss(DialogInterface dialog) {
            onSaveKeyIntentConfirmationPromptDismissed();
          }
        });
  }
Prompt to download Google Play Services from Google Play.
java/com/google/android/apps/authenticator/AuthenticatorActivity.java