gpt4 book ai didi

java - 直接打开 GooglePlay 评分部分?

转载 作者:行者123 更新时间:2023-11-29 04:57:47 26 4
gpt4 key购买 nike

我想在我的 Android 应用程序中有一个“评价应用程序”按钮,它直接链接到我应用程序的谷歌播放页面的评级部分。

我知道如何通过单击按钮打开我的应用程序的 google play 页面。

有没有办法打开 google play 应用程序页面的部分,用户可以在其中直接对应用程序进行评分?

最佳答案

根据 official documentation ...你不能。

Google Play 商店只有 3 种类型的 Intent:

1-

类型:显示特定应用的产品详细信息页面

网址:http://play.google.com/store/apps/details?id=package_name

Intent URI:market://details?id=package_name

2-

类型:显示特定发布者的应用

网址:http://play.google.com/store/search?q=pub:publisher_name

Intent URI:market://search?q=pub:publisher_name

3-

类型:使用一般字符串查询搜索应用。

网址:http://play.google.com/store/search?q=query

Intent URI:market://search?q=query

编辑:还有第 4 种类型:链接到 Collections 以打开付费最高、免费最高、编辑精选等应用。 (按照官方文档)

您制定 Intent 的方式一如既往:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=com.example.android"));
startActivity(intent);

关于java - 直接打开 GooglePlay 评分部分?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33125355/

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