public class ActivityUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ActivityUtils.Supplier<T> |
Constructor and Description |
---|
ActivityUtils() |
Modifier and Type | Method and Description |
---|---|
static android.app.Activity |
getRunningActivity()
Gets the running (a.k.a.
|
static void |
setRunningActivitySupplier(ActivityUtils.Supplier<android.app.Activity> activitySupplier)
Sets the Supplier for the running (a.k.a.
|
public static void setRunningActivitySupplier(ActivityUtils.Supplier<android.app.Activity> activitySupplier)
TestRunner
. If a
custom runner is used, this method must be called appropriately, otherwise
getRunningActivity()
won't work.public static android.app.Activity getRunningActivity()
InstrumentationDriver
depends on this.