launch
fun launch(instrumentation: Instrumentation, uiAutomation: UiAutomation, device: UiDevice, 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
uiAutomation
The automation instance used for automated testing
device
The device instance used for automated testing
packageName
The package name of the app
timeout
The maximum time to wait for launch, in milliseconds