launch

fun launch(instrumentation: Instrumentation, packageName: String, timeout: Long = 5000)

Launches the app with the given packageName if it's not running

Parameters

instrumentation

The instrumentation used for automated testing

packageName

The package name of the app

timeout

The maximum time to wait for launch, in milliseconds