@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    @SuppressWarnings("deprecation") // TODO: refactor to use savedInstanceState instead
    Object lastNonConfigurationInstance = getLastNonConfigurationInstance();
    if (lastNonConfigurationInstance != null) {
      mController = (SyncNowController) lastNonConfigurationInstance;
    } else {
      mController = new SyncNowController(mTotpClock, mNetworkTimeProvider);
    }

    mController.attach(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