launchApp

open fun launchApp(packageName: String)

Launch the application.

Parameters

packageName

The name of the package.

open fun launchApp(activity: Activity, packageName: String, requestCode: Int)

Launch the application.

Parameters

activity

The activity.

packageName

The name of the package.

requestCode

If >= 0, this code will be returned in onActivityResult() when theactivity exits.