8

是否可以直接打开特定应用程序的 Play Store 应用程序的评分屏幕对话框?

4

1 回答 1

3

尝试这个..

Uri uri = Uri.parse("market://details?id=" + context.getPackageName());
Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
try {
  startActivity(goToMarket);
} catch (ActivityNotFoundException e) {
  Toast.makeText(context, "Couldn't launch the market", Toast.LENGTH_LONG).show();
}

或者

Intent intent = new Intent(Intent.ACTION_VIEW);                     
intent.setData(Uri.parse("market://details?id=Your Main Package Name"));
startActivity(intent);
于 2013-10-09T05:26:39.207 回答