package com.andela.iworkout.utilities;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class Launcher {
    public static final String TRANSPORT = "transport";

    public static void launch(Context context, Class<?> activity) {
        Intent intent = new Intent(context, activity);
        context.startActivity(intent);
    }

    public static void launchActivity(Context context, Bundle bundle, Class<?> activity) {
        Intent intent = new Intent(context, activity);
        intent.putExtra(TRANSPORT, bundle);
        context.startActivity(intent);
    }

}

package com.andela.iworkout.utilities;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.andela.iworkout.activities.MainActivity;
import com.andela.iworkout.activities.WorkoutActivity;

public class Launcher {
    public static final String TRANSPORT = "transport";

    public static void launch(Context context, Class<?> activity) {
        Intent intent = new Intent(context, activity);
        context.startActivity(intent);
    }

    public static void launchActivity(Context context, Bundle bundle, Class<?> activity) {
        Intent intent = new Intent(context, activity);
        intent.putExtra(TRANSPORT, bundle);
        context.startActivity(intent);
    }

    public static void launchForResult(Activity activity, Class<?> activityClass, int CODE) {
        Intent intent = new Intent(activity, activityClass);
        activity.startActivityForResult(intent, CODE);
    }
}

Add lunchForResult method