installed

fun installed(instrumentation: Instrumentation, packageName: String): Boolean

Checks if the app with the given packageName is installed, according to launch intent retrieved by package manager.

Return

True if app is installed

Parameters

instrumentation

The instrumentation used for automated testing

packageName

The package of the app