spock-android/src/main/java/com/andrewreitz/spock/android/extension/UseActivityInterceptor.java
protected <T extends Activity> Intent getLaunchIntent(String targetPackage,
      Class<T> activityClass, BundleCreator bundleCreator) {
    Intent intent = new Intent(Intent.ACTION_MAIN);
    intent.setClassName(targetPackage, activityClass.getName());
    intent.putExtras(bundleCreator.createBundle());
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    return intent;
  }
protected <T extends Activity> Intent getLaunchIntent(String targetPackage,
      Class<T> activityClass, BundleCreator bundleCreator) {
    Intent intent = new Intent(Intent.ACTION_MAIN);
    intent.setClassName(targetPackage, activityClass.getName());
    intent.putExtras(bundleCreator.createBundle());
    intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    return intent;
  }
protected < T extends Activity > Intent getLaunchIntent ( String targetPackage , Class < T > activityClass , BundleCreator bundleCreator ) { Intent intent = new Intent ( Intent . ACTION_MAIN ) ; intent . setClassName ( targetPackage , activityClass . getName ( ) ) ; intent . putExtras ( bundleCreator . createBundle ( ) ) ; intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; return intent ; }
The intent to launch the Activity.

@param targetPackage The package of the Activity.
@param activityClass The Activity class send the intent to.
@param bundleCreator Bundle creator instance that will give a bundle to the activity.
@param <T> The specific Activity type.
@return The intent to start the activity.
The intent to launch the Activity .