我试图在我的应用程序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/