running

fun running(uiAutomation: UiAutomation, packageName: String): Boolean

Checks if the app with the given packageName is running, re-using the applications function.

Return

True if the package is running

Parameters

uiAutomation

The automation instance used for automated testing

packageName

The package of the app