Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Launch Play Store without resolveActivity
val playStoreIntent = Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.wealthfront")).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK
}
try {
context.startActivity(playStoreIntent)
} catch (ex: ActivityNotFoundException) {
goToPlayStoreUrl()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment