直接在应用中为Google Play应用评分

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();
    }
}
Run Code Online (Sandbox Code Playgroud)

  • 这里的代码直接取自之前的答案http://stackoverflow.com/questions/6899942/use-application-to-rate-it-on-market?rq=1 (6认同)
  • 还没有针对Android的应用内评级功能,有吗?iOS在本机应用评级方面表现非常出色 (6认同)
  • 疯狂地认为Android仍然没有此功能。我们有一个Android和iOS应用程序。这两个应用的用户数量相似。Android版本比iOS应用程序长2多年左右,iOS应用程序的评级是其两倍,因为您可以直接在应用程序内进行评级。聚在一起,Google! (2认同)

Tom*_*vic 8

这很简单......

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)));
    }
Run Code Online (Sandbox Code Playgroud)

  • 我不相信有一种方法可以检测您是否对您的应用进行了评分. (2认同)

The*_*Man 7

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();
    }
}
Run Code Online (Sandbox Code Playgroud)


小智 7

您可以使用第三方工具.以下是一些常用的解决方案:

appirater:https://github.com/drewjw81/appirater-android/

apptentive:http://www.apptentive.com/

polljoy:https://polljoy.com

AppRater:https://github.com/delight-im/AppRater