Archie
fun someFunctionInsideActivity() { val intent = try { packageManager.getLaunchIntentForPackage("some.app.id") } catch (e: Exception) { Intent( Intent.ACTION_VIEW, Uri.parse(webSiteUrl) ) } startActivity(intent) }
Espresso
packageManager.getLaunchIntentForPackage(...)
Juliane Lehmann
ephemient
A modern programming language that makes developers happier.