code: public static Intent createOAuthActivityIntent(final Context context, final String clientId, final String clientSecret, String redirectUrl, boolean loginViaBoxApp) {
          Intent intent = new Intent(context, OAuthActivity.class);
          intent.putExtra(BoxConstants.KEY_CLIENT_ID, clientId);
          intent.putExtra(BoxConstants.KEY_CLIENT_SECRET, clientSecret);
          if (!SdkUtils.isEmptyString(redirectUrl)) {
              intent.putExtra(BoxConstants.KEY_REDIRECT_URL, redirectUrl);
          }
          intent.putExtra(LOGIN_VIA_BOX_APP, loginViaBoxApp);
          return intent;
      }
docs: Create intent to launch OAuthActivity. Notes about redirect url parameter: If you already set redirect url in <a
  href="https://cloud.app.box.com/developers/services">box dev console</a>, you should pass in the same redirect url or use null for redirect url. If you
  didn't set it in box dev console, you should pass in a url. In case you don't have a redirect server you can simply use "http://localhost".
  
  @param context
  context
  @param clientId
  your box client id
  @param clientSecret
  your box client secret
  @param redirectUrl
  redirect url, if you already set redirect url in <a href="https://cloud.app.box.com/developers/services">box dev console</a>, leave this null
  or use the same url, otherwise this field is required. You can use "http://localhost" if you don't have a redirect server.
  @param loginViaBoxApp Whether login should be handled by the installed box android app. Set this to true only when you are sure or want
  to make sure user installed box android app and want to use box android app to login.
  @return  intent to launch OAuthActivity.