gpt4 book ai didi

android - 小米商店应用的页面 Intent ​​是什么?

转载 作者:行者123 更新时间:2023-12-04 23:59:38 28 4
gpt4 key购买 nike

我是 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=trueNote: 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/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com