android - “market://details?id =”表示找不到商品

标签 android android-intent google-play rate

我试图在我的应用程序https://github.com/codechimp-org/AppRater中添加评分功能,但是,每次我单击rate now时,它都会显示The item you requested could not be found
我如何摆脱这种麻烦。我在用

public void onClick(DialogInterface dialog, int id) {
                        context.startActivity(new Intent(Intent.ACTION_VIEW, Uri
                                .parse("market://details?id=com.xxx.xxx")));

最佳答案

您的网址似乎不正确。

应该是"market://details?id="+ context.getPackageName().toString()
看来您确实是在尝试复制/粘贴一些样本而没有真正理解所写的内容...

关于android - “market://details?id =”表示找不到商品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15018272/

相关文章:

android - onCreate() 中的 extra 为空值

android - min-sdk 比之前版本的 android 更大

android - 某些设备中的 PlayStore 应用程序仍显示旧版本,而新版本已上线并可在 Play 商店中使用

android - AsyncTask中applicationobject的调用方法

android - 在多 fragment Activity 中使用选项菜单

android - 如何检查JSON中的值

android - 如何在 Kotlin 中关闭 Android 应用程序

从 URL 到浏览器或其他 Activity 的 Android Image Intent

android - 如何检测Android手机中的SIM卡变化?

android - 如何在 Google Play 上的同一应用程序中使用另一个 keystore