Skip to content

Instantly share code, notes, and snippets.

@beilly
Created October 8, 2016 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beilly/84a4d922b2cea9a5b1bb081d010f49a0 to your computer and use it in GitHub Desktop.
Save beilly/84a4d922b2cea9a5b1bb081d010f49a0 to your computer and use it in GitHub Desktop.
android跳转到应用市场评论
try {
Uri uri = Uri.parse("market://details?id="
+ BuildConfig.APPLICATION_ID);//需要评分的APP包名
Intent intent5 = new Intent(Intent.ACTION_VIEW, uri);
intent5.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent5);
} catch (Exception e) {
TooltipUtils.showToastL(this, getString(R.string.common_no_function));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment