public static Intent getLaunchIntentActionScanBarcode(
      Context context, boolean startFromAddAccountActivity) {
    return new Intent(AuthenticatorActivity.ACTION_SCAN_BARCODE)
        .putExtra(
            BarcodeCaptureActivity.INTENT_EXTRA_START_FROM_ADD_ACCOUNT, startFromAddAccountActivity)
        .setComponent(new ComponentName(context, AuthenticatorActivity.class));
  }
Invoked when a context menu/action bar item is clicked/tapped.

@return {@code true} if the event was consumed, {@code false} otherwise.
java/com/google/android/apps/authenticator/AuthenticatorActivity.java