如何通过INTENT调用启动google play商店并且进入指定app的界面。
首先我们查看apk可以看到google play的包的packagename为com.android.vending。
知道包名一起就好办了。
调用代码如下:
public static void showMarket(Activity activity) { final String appPackageName = "com.xxx.xxx"; try { Intent launchIntent = activity.getPackageManager().getLaunchIntentForPackage("com.android.vending"); // package name and activity ComponentName comp = new ComponentName("com.android.vending", "com.google.android.finsky.activities.LaunchUrlHandlerActivity"); launchIntent.setComponent(comp); launchIntent.setData(Uri.parse("market://details?id="+appPackageName)); activity.startActivity(launchIntent); } catch (android.content.ActivityNotFoundException anfe) { activity.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id=" + appPackageName))); } }
由于可能存在google play没有安装的情况,所以需要加个异常捕捉。
如果google play没有安装则打开相关的页面。
appPackageName 即为你自己的app的包名。
相关推荐
从google play上下载app的APK Downloader 源码
App侵权开发者如何向苹果AppStore或GooglePlay应用商店投诉.pdf
程序中取得一些Android应用的信息,Google的Android Market公布了api,可以取得Android Market上的Android应用的包括名字、作者、应用的描述、评论、图标与软件截图等信息。 基于Google Protocol Buffers 议实现
Google Play 应用内购
Google Play 应用内支付(In-app Billing V2 + V3)官方示例打包下载
Google Play 10年数据纵览-App Annie-201811.pdf
Google Play Music App ui界面设计 .xd素材下载 google play、Music App ui界面、ui界面设计、xd
比较AppStore SEO与Google Play SEO两者。
Small utility app to quickly check the status of the Google Play services. It shows the version number, installation date and date of the last update. It also provides links to the Play Store, APK ...
要想使用google play, google map等google应用,就必须安装Google Play Service,但Google Play Service有太多分支了,最近终于搞明白各个分支代表什么。 版本号最后三位(2104405-XYZ)分别表示Android版本,cpu的...
谷歌商店 接入应用内评价demo,找了一遍CSDN没找到自己实现了一个 博客文章链接:https://blog.csdn.net/t1446242775/article/details/109256073
软件名称:Google Play services 软件版本:v6.5.96官方全机型7版 软件语言:中文 软件大小:33.0M 软件包名:com.google.android.gms 支持系统:Android 2.2+ 【软件介绍】 7版详情:管他那么多,升了再说 10:...
google play services jar包
googleplay支付demo in-app-billing-v02 in-app-billing-v03
google_play_services 最新
google play service google play store 1. 安装google服务框架 注意一定要选择你的安卓系统版本的服务框架,根据文件名字来找。 2. google play service 一定要安装最新版本,选择第一个点击进去 注意一定要选择你...
Google-Play-Store-App-Info-Extractor 从 Google Play 商店提取应用信息。 该脚本适用于应用程序类别中的所有热门付费、热门免费部分。 此外,您还可以使用其Top Paid 、 Top Free或Top Grossing URLs 从Top Charts...
提供几个web可以代替googleplay下载相关app
根据google play审核条款总结出的注意事项
由于国内的安卓设备开发的环境限制,安卓移动设备如安卓盒子,安卓TV车载设备等,搭载了goole app等套装的时候,在使用中goole play store可能会自动更新,导致出现无法使用的情况,最好是在framework层将其安装更新...