private void showInProgressDialog() {
    mProgressDialog = ProgressDialog.show(
        this,
        getString(R.string.timesync_sync_now_progress_dialog_title),
        getString(R.string.timesync_sync_now_progress_dialog_details),
        true,
        true);
    mProgressDialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
      @Override
      public void onCancel(DialogInterface dialog) {
        mController.abort(SyncNowActivity.this);
      }
    });
  }
Activity that adjusts the application's internal system time offset (for the purposes of
computing TOTP verification codes) by making a network request to Google and comparing Google's
time to the device's time.
java/com/google/android/apps/authenticator/timesync/SyncNowActivity.java