我是 Android library 的开发人员为应用程序评分,它询问用户是否喜欢某个应用程序,如果他想对该应用程序进行评分,则将其重定向到应用程序商店。
有人知道,小米米商店将用户权限重定向到给定应用程序的启动 Intent 是什么?
例如,对于 Google Play,它是:
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")
}
最佳答案
嗯,终于得到了小米开发者支持的回复:
The link below could be used to open GetApps and take to the app page,on condition that the user has already installed GetApps. Link: mimarket://details?id=packagename&back=true|false&ref=refstr&startDownload=true Note: you could replace the package name with yours
所以我想我们必须使用这段代码:
val intent = Intent(Intent.ACTION_VIEW)
.apply {
data = Uri.parse("mimarket://details?id=com.example.android&back=true|false&ref=refstr&startDownload=true")
}
关于android - 小米商店应用的页面 Intent 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63208565/