【发布时间】:2020-09-03 21:29:47
【问题描述】:
我在单击按钮时调用此函数,以发送用户在 Google Play 上对应用进行评分。但它给了我错误“要查看此内容,请安装并设置网络浏览应用程序。”
private void rateMe() {
try {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=$packageName")));
} catch (ActivityNotFoundException e) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=$packageName")));
}
}
【问题讨论】:
-
Google 拦截到 Google Play 的 Android Intent,详情请参阅this post。