protected void handleIntent(Intent intent) {
    if (intent == null) {
      return;
    }

    String action = intent.getAction();
    if (ACTION_SCAN_BARCODE.equals(action)) {
      boolean startFromAddAccountActivity =
          intent.getBooleanExtra(BarcodeCaptureActivity.INTENT_EXTRA_START_FROM_ADD_ACCOUNT, false);
      scanBarcode(startFromAddAccountActivity);
    } else if (Intent.ACTION_VIEW.equals(action)) {
      interpretScanResult(intent.getData(), true);
    } else if ((action == null) || (Intent.ACTION_MAIN.equals(action))) {
      updateFirstAccountAddedNoticeDisplay();
    }
  }
Reacts to the {@link Intent} that started this activity or arrived to this activity without
restarting it (i.e., arrived via {@link #onNewIntent(Intent)}). Does nothing if the provided
intent is {@code null}.
java/com/google/android/apps/authenticator/AuthenticatorActivity.java