Mat*_*der 48 android rate google-play
我需要在我的Android应用程序中制作费率选项.
我找到了这个链接
但我不确定是否要搜索.我想为用户提供在Google Play上为我的应用评分的能力.
K_A*_*nas 125
评级是通过市场应用程序完成的,因此可以信任评级.如果允许应用程序自行处理评级,那么开发人员可以随时操纵应用程序的评级.所以你无法自己处理评级.您只能提醒用户访问Google Play上的应用页面,并要求他们为您的应用评分以获得更多支持.
使用内置意图推出市场
private void launchMarket() {
    Uri uri = Uri.parse("market://details?id=" + getPackageName());
    Intent myAppLinkToMarket = new Intent(Intent.ACTION_VIEW, uri);
    try {
        startActivity(myAppLinkToMarket);
    } catch (ActivityNotFoundException e) {
        Toast.makeText(this, " unable to find market app", Toast.LENGTH_LONG).show();
    }
}
这很简单......
final String appPackageName = "your.package.name";
try {
      startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName)));
    } catch (android.content.ActivityNotFoundException anfe) {
      startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + appPackageName)));
    }
public void launchMarket() 
{
    Uri uri = Uri.parse("market://details?id=" + this.getPackageName());
    Intent myAppLinkToMarket = new Intent(Intent.ACTION_VIEW, uri);
    try 
    {
        mContext.startActivity(myAppLinkToMarket);
    } 
    catch (ActivityNotFoundException e) 
    {
        Toast.makeText(this, " Sorry, Not able to open!", Toast.LENGTH_SHORT).show();
    }
}
小智 7
您可以使用第三方工具.以下是一些常用的解决方案:
appirater:https://github.com/drewjw81/appirater-android/
apptentive:http://www.apptentive.com/
polljoy:https://polljoy.com
AppRater:https://github.com/delight-im/AppRater