public static void startNavigation(Activity activity, NavigationLauncherOptions options) {
    SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);
    SharedPreferences.Editor editor = preferences.edit();

    storeDirectionsRouteValue(options, editor);
    storeConfiguration(options, editor);

    storeThemePreferences(options, editor);
    storeOfflinePath(options, editor);
    storeOfflineVersion(options, editor);

    editor.apply();

    Intent navigationActivity = new Intent(activity, MapboxNavigationActivity.class);
    storeInitialMapPosition(options, navigationActivity);
    activity.startActivity(navigationActivity);
  }
public static void startNavigation ( Activity activity , NavigationLauncherOptions options ) { SharedPreferences preferences = PreferenceManager . getDefaultSharedPreferences ( activity ) ; SharedPreferences . Editor editor = preferences . edit ( ) ; storeDirectionsRouteValue ( options , editor ) ; storeConfiguration ( options , editor ) ; storeThemePreferences ( options , editor ) ; storeOfflinePath ( options , editor ) ; storeOfflineVersion ( options , editor ) ; editor . apply ( ) ; Intent navigationActivity = new Intent ( activity , MapboxNavigationActivity . class ) ; storeInitialMapPosition ( options , navigationActivity ) ; activity . startActivity ( navigationActivity ) ; }
Starts the UI with a {@link DirectionsRoute} already retrieved from
{@link com.mapbox.services.android.navigation.v5.navigation.NavigationRoute}

@param activity must be launched from another {@link Activity}
@param options  with fields to customize the navigation view