src/main/java/de/blau/android/prefs/PresetEditorActivity.java
/**
     * Start the activity and return a result
     * 
     * @param activity the calling Activity
     * @param presetName the name of the preset
     * @param presetUrl the url
     * @param enable if true enable the preset
     * @param requestCode the code to identify the result
     */
Start the activity and return a result


Start the activity and return a result
public static void startForResult(@NonNull Activity activity, @NonNull String presetName, @NonNull String presetUrl, boolean enable, int requestCode) {
        Intent intent = new Intent(activity, PresetEditorActivity.class);
        intent.setAction(ACTION_NEW);
        intent.putExtra(EXTRA_NAME, presetName);
        intent.putExtra(EXTRA_VALUE, presetUrl);
        intent.putExtra(EXTRA_ENABLE, enable);
        activity.startActivityForResult(intent, requestCode);
    }
public static void startForResult ( @ NonNull Activity activity , @ NonNull String presetName , @ NonNull String presetUrl , boolean enable , int requestCode ) { Intent intent = new Intent ( activity , PresetEditorActivity . class ) ; intent . setAction ( ACTION_NEW ) ; intent . putExtra ( EXTRA_NAME , presetName ) ; intent . putExtra ( EXTRA_VALUE , presetUrl ) ; intent . putExtra ( EXTRA_ENABLE , enable ) ; activity . startActivityForResult ( intent , requestCode ) ; }
Start the activity and return a result
Start the activity and return a result