跳至应用商店升级app
try {
val uri = Uri.parse("market://details?id=${activity?.packageName}" )
val intent = Intent(Intent.ACTION_VIEW, uri)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
startActivity(intent)
}catch (e: Exception) {
}
跳至应用商店升级app
try {
val uri = Uri.parse("market://details?id=${activity?.packageName}" )
val intent = Intent(Intent.ACTION_VIEW, uri)
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
startActivity(intent)
}catch (e: Exception) {
}
本文标题:Android kotlin 跳至应用商店升级APP
本文链接:https://www.haomeiwen.com/subject/biqxxrtx.html
网友评论