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

标签 android android-intent xiaomi

我是 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/

相关文章:

android - 如何检测特定应用程序已启动?

android - 使用Android热点时间歇性SSL_PROTOCOL_ERROR

android - 从图库中选择图像不适用于 Redmi Note 4

java - super(Application.class); 是什么意思?在Java中?

java - Android getDeclaredFields() 返回无序结果

Android TCP 紧急消息实现

java - 在 OnTouch 中更改页面

android - 语音生物识别解锁安卓手机

android - 如何从 ACTION_VIEW Intent 中排除特定应用程序?

ios - iOS Swift Mi Scale 2蓝牙变胖