How do i run code before onCreate called in my test activity?
@Before is called after onCreate which causes problems.
Im using
public ActivityScenarioRule<MyActivity> activityScenarioRule = new ActivityScenarioRule<>(MyActivity.class);
To launch the activity.