isApplicationInstalled

fun isApplicationInstalled(context: Context, packageName: String): Boolean

Check if a certain application is installed on a device.

Return

true if the application is installed, false otherwise.

Parameters

context

the applications context.

packageName

the package name that you want to check.