Android 什么';s小米店应用程序';什么是页面意图?
我是一个Android应用程序的开发者,它会询问用户是否喜欢某个应用程序,如果他想给该应用程序打分,就会将其重定向到应用商店 有人知道吗,小米店的发布意图是什么,将用户权限重定向到给定的应用程序 例如,对于Google Play,它是:Android 什么';s小米店应用程序';什么是页面意图?,android,android-intent,xiaomi,Android,Android Intent,Xiaomi,我是一个Android应用程序的开发者,它会询问用户是否喜欢某个应用程序,如果他想给该应用程序打分,就会将其重定向到应用商店 有人知道吗,小米店的发布意图是什么,将用户权限重定向到给定的应用程序 例如,对于Google Play,它是: val intent = Intent(Intent.ACTION_VIEW).apply { data = Uri.parse( "https://play.google.com/store/apps/details?
val intent = Intent(Intent.ACTION_VIEW).apply {
data = Uri.parse(
"https://play.google.com/store/apps/details?id=com.example.android")
setPackage("com.android.vending")
}
好了,最后我从小米开发者支持部得到了一个答案: 以下链接可用于打开GetApps并转到应用程序页面,前提是用户已安装GetApps。 链接:mimarket://details?id=packagename&back=true|false&ref=refstr&startDownload=true 注意:您可以将包名替换为您的包名 所以我想我们必须使用这个代码:
val intent = Intent(Intent.ACTION_VIEW)
.apply {
data = Uri.parse("mimarket://details?id=com.example.android&back=true|false&ref=refstr&startDownload=true")
}
你知道如何在维梧、Oppo、三星、华为等商店获得同样的服务吗?@Hemanth尝试联系他们的开发者支持