是否可以直接打开特定应用程序的Play商店应用程序的评级屏幕对话框?
答案 0 :(得分:2)
试试这个..
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);