android - 无法提供评级功能

标签 android google-play

我试图在我的应用程序中提供评级功能,但是当我点击 rate 时,它显示“未找到请求的项目”。

最佳答案

尝试使用这段代码

    private void rateAppOnPlayStore() {
    Uri uri = Uri.parse("market://details?id=" + getPackageName());
    Intent myAppLinkToMarket = new Intent(Intent.ACTION_VIEW, uri);
    try {
        startActivity(myAppLinkToMarket);
    } catch (ActivityNotFoundException e) {
        Toast.makeText(this, "Unable to find google play app.",
                Toast.LENGTH_LONG).show();
    }
}

这也适用于 Market 应用。

关于android - 无法提供评级功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15247741/

相关文章:

android - 可过滤搜索 View 上的大黑框

android - “The specified Android SDK Build Tools version (26.0.0) is ignored…”

适用于 Android 的 Java REST 客户端 API

android - getWritableDatabase() 在我的应用程序中抛出空指针异常

javascript - 我可以修复手机上相对于屏幕的背景吗? (注: not window)

android - 我可以为 Google Play UI 测试定义场景吗?

Android - 构建同一应用程序的两个版本

android - 有没有办法限制应用程序在 Play 商店的下载量?

Android In-App Billing v3 在各种设备上的可用性

android - 如何通过 FaSTLane 创建 aab (bundle)?