public static <T extends Activity> ActivityController<T> buildActivity(
      Class<T> activityClass, Intent intent) {
    return ActivityController.of(ReflectionHelpers.callConstructor(activityClass), intent);
  }
public static <T extends Activity> ActivityController<T> buildActivity(
      Class<T> activityClass, Intent intent) {
    return ActivityController.of(ReflectionHelpers.callConstructor(activityClass), intent);
  }
public static < T extends Activity > ActivityController < T > buildActivity ( Class < T > activityClass , Intent intent ) { return ActivityController . of ( ReflectionHelpers . callConstructor ( activityClass ) , intent ) ; }
Creates a ActivityController for the given activity class with the intent.

<p>Note: the activity class is not determined by the intent.

<p>Consider using {@link androidx.test.core.app.ActivityScenario} instead, which provides
higher-level, streamlined APIs to control the lifecycle and it works with instrumentation tests
too.
Creates a ActivityController for the given activity class with the intent .