"年率此应用" -link在谷歌播放手机上存储的应用程序 [英] "Rate This App"-link in Google Play store app on the phone

查看:142
本文介绍了"年率此应用" -link在谷歌播放手机上存储的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个价格这个程序-link在Android应用程序打开该用户的谷歌Play商店应用程序的上市在他们的手机上。

I'd like to put a "Rate This App"-link in an Android App to open up the app-listing in the user's Google Play store app on their phone.

  1. 在什么code我必须写创建市场:// 的http:// -link开放的谷歌播放在手机上存储的应用程序?
  2. 你在哪里把code?
  3. 有没有人有这方面的一个示例实现?
  4. 您必须指定屏幕里的市场:// 的http:// 链接会放置,并且这是最好的使用 - 市场:// 的http://
  1. What code do I have to write to create the market:// or http://-link open in the Google Play store app on the phone?
  2. Where do you put the code?
  3. Does anyone have a sample implementation of this?
  4. Do you have to specify the screen where the market:// or http:// link will be placed, and which is the best to use - market:// or http://?

在此先感谢!

推荐答案

我打开从我的应用程序Play商店具有以下code:

I open the Play Store from my App with the following code:

    Uri uri = Uri.parse("market://details?id=" + context.getPackageName());
    Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
    // To count with Play market backstack, After pressing back button, 
    // to taken back to our application, we need to add following flags to intent. 
    goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |
                    Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET |
                    Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
    try {
        startActivity(goToMarket);
    } catch (ActivityNotFoundException e) {
        startActivity(new Intent(Intent.ACTION_VIEW,
                Uri.parse("http://play.google.com/store/apps/details?id=" + context.getPackageName())));
    }

这将启动Play商店与已经打开了你的应用程序页面。用户可以给它。

This will launch the Play Store with your App page already opened. The user can rate it there.

这篇关于"年率此应用" -link在谷歌播放手机上存储的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆