AppLauncher

AppLauncher is a utility class that can be used to launch an app with a given package name.

If the activity is not installed, the Google Play Store will be opened.

Functions

Link copied to clipboard
fun lunch(packageManager: PackageManager, packageName: String, context: Context)

Opens the app with supplied package name, or opens Google Play if the app is not installed.