Android 如何调用google play star rating对话框?

Android 如何调用google play star rating对话框?,android,google-play,web-deployment,Android,Google Play,Web Deployment,我计划在action bar中插入一个类似rate us的选项,并希望调用google play star rating dialog。我知道我们可以使用这个概念调用我们的应用程序页面。我找了很多,但没有找到。有什么帮助吗 Uri uriUrl = Uri.parse(<packageName>); Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl); startActivity(

我计划在action bar中插入一个类似rate us的选项,并希望调用google play star rating dialog。我知道我们可以使用这个概念调用我们的应用程序页面。我找了很多,但没有找到。有什么帮助吗

Uri uriUrl = Uri.parse(<packageName>);
        Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);
        startActivity(launchBrowser);
uriUrl=Uri.parse();
意向启动浏览器=新意向(Intent.ACTION_视图,uriUrl);
startActivity(启动浏览器);
看看这段代码。最终,您可以使用以下意图:

context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + APP_PACKAGE_NAME)));

您可以使用以下代码:

String appPackage = mContext.getPackageName();
Intent intent = new Intent(Intent.ACTION_VIEW,  Uri.parse("https://play.google.com/store/apps/details?id=" + appPackage));
mContext.startActivity(intent);
或者,要获得一个完整且简单的解决方案,您可以使用gradle添加此库:

compile 'com.github.fernandodev.easyratingdialog:easyratingdialog:+'