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);
    }

}

@@ -33,16 +33,45 @@
 ities;%0A%0A
+import android.app.Activity;%0A
 import a
@@ -152,16 +152,124 @@
 undle;%0A%0A
+import com.andela.iworkout.activities.MainActivity;%0Aimport com.andela.iworkout.activities.WorkoutActivity;%0A%0A
 public c
@@ -746,10 +746,226 @@
 %0A    %7D%0A%0A
+    public static void launchForResult(Activity activity, Class%3C?%3E activityClass, int CODE) %7B%0A        Intent intent = new Intent(activity, activityClass);%0A        activity.startActivityForResult(intent, CODE);%0A    %7D%0A
 %7D%0A

Add lunchForResult method