code: public static Intent createAuthorizationIntent(Context context, String authorizationUrl, boolean forceThirdPartyApp) {
          Intent intent;
  
          if (!forceThirdPartyApp && EvernoteInstallStatus.INSTALLED.equals(getEvernoteInstallStatus(context, ACTION_AUTHORIZE))) {
              intent = new Intent(ACTION_AUTHORIZE);
              intent.setPackage(PACKAGE_NAME);
          } else {
              intent = new Intent(context, EvernoteOAuthActivity.class);
          }
  
          intent.putExtra(EXTRA_AUTHORIZATION_URL, authorizationUrl);
          return intent;
      }
docs: Creates an {@link Intent} to authorize this app by the main Evernote app.
  
  @param context The {@link Context} starting the {@link Intent}.
  @param authorizationUrl The OAuth authorization URL.
  @param forceThirdPartyApp If {@code true}, never use Evernote app to authenticate user.
  @return The {@link Intent}.