rides-android/src/main/java/com/uber/sdk/android/rides/RideRequestActivity.java
@NonNull
    public static Intent newIntent(@NonNull Context context,
            @Nullable RideParameters rideParameters,
            @NonNull SessionConfiguration loginConfiguration,
            @Nullable String accessTokenStorageKey) {
        Intent data = new Intent(context, RideRequestActivity.class);

        if (rideParameters == null) {
            rideParameters = new RideParameters.Builder().build();
        }

        data.putExtra(RIDE_PARAMETERS, rideParameters);
        data.putExtra(EXTRA_LOGIN_CONFIGURATION, loginConfiguration);
        data.putExtra(EXTRA_ACCESS_TOKEN_STORAGE_KEY, accessTokenStorageKey);
        return data;
    }
@NonNull
    public static Intent newIntent(@NonNull Context context,
            @Nullable RideParameters rideParameters,
            @NonNull SessionConfiguration loginConfiguration,
            @Nullable String accessTokenStorageKey) {
        Intent data = new Intent(context, RideRequestActivity.class);

        if (rideParameters == null) {
            rideParameters = new RideParameters.Builder().build();
        }

        data.putExtra(RIDE_PARAMETERS, rideParameters);
        data.putExtra(EXTRA_LOGIN_CONFIGURATION, loginConfiguration);
        data.putExtra(EXTRA_ACCESS_TOKEN_STORAGE_KEY, accessTokenStorageKey);
        return data;
    }
@ NonNull public static Intent newIntent ( @ NonNull Context context , @ Nullable RideParameters rideParameters , @ NonNull SessionConfiguration loginConfiguration , @ Nullable String accessTokenStorageKey ) { Intent data = new Intent ( context , RideRequestActivity . class ) ; if ( rideParameters == null ) { rideParameters = new RideParameters . Builder ( ) . build ( ) ; } data . putExtra ( RIDE_PARAMETERS , rideParameters ) ; data . putExtra ( EXTRA_LOGIN_CONFIGURATION , loginConfiguration ) ; data . putExtra ( EXTRA_ACCESS_TOKEN_STORAGE_KEY , accessTokenStorageKey ) ; return data ; }
Creates a new {@link Intent} to be passed in to this activity with all the required information.

@param context the {@link Context} that will be launching this activity
@param rideParameters the optional {@link RideParameters} containing information to populate the {@link RideRequestView}
@param loginConfiguration required when RideRequestActivity needs to start authentication flow
@param accessTokenStorageKey optional key to lookup access token from {@link com.uber.sdk.core.auth.AccessTokenStorage}
@return new {@link Intent} with the necessary parameters for this activity
Creates a new { @link Intent } to be passed in to this activity with all the required information .