public static void rateNow(final Context context) {        try {            Intent intent = new Intent(Intent.ACTION_VIEW);            intent.setData(Uri.parse("market://details?id=" + getPackageName()));            intent.setPackage(GoogleMarket.GOOGLE_PLAY);//这里对应的是谷歌商店,跳转别的商店改成对应的即可            if (intent.resolveActivity(context.getPackageManager()) != null) {                context.startActivity(intent);            } else {//没有应用市场,通过浏览器跳转到Google Play                Intent intent2 = new Intent(Intent.ACTION_VIEW);                intent2.setData(Uri.parse("https://play.google.com/store/apps/details?id=" + getPackageName()));                if (intent2.resolveActivity(context.getPackageManager()) != null) {                    context.startActivity(intent2);                } else {                    //没有Google Play 也没有浏览器                }            }        } catch (ActivityNotFoundException activityNotFoundException1) {            Log.e(AppRater.class.getSimpleName(), "GoogleMarket Intent not found");        }    }

参考:
APP内部跳转Google Play
Android跳转谷歌商店APP详情页面

更多相关文章

  1. android 调用系统图片浏览器并返回图片路径
  2. android WebView 应用内点击超链接不调用系统浏览器
  3. android应用商店完整版源码
  4. JS判断是IOS还是Android,判断是否微信浏览器
  5. Android之WebView 防止调用系统浏览器打开页面
  6. 收集几个移动平台浏览器的User-Agent
  7. 如何在phonegap中使用自带浏览器打开链接
  8. Android中浏览器UA的生成策略
  9. Android调用浏览器打开网页内容

随机推荐

  1. android bugly使用
  2. Android(安卓)之开机启动Service
  3. android的文件操作
  4. android打电话和发短信
  5. Error:Execution failed for task ':app:
  6. linux下eclipse构建并编译android一个简
  7. 2013.6.18 Android(安卓)SDK和最新ADT下
  8. Android(安卓)FrameLayout
  9. android中json解析及使用(中)
  10. Linux下安装配置Android开发环境