Android 应用中含有相关产品链接的格式

要想指引用户到推管产品页面有以下选择,

1. 直接展示指定app详情页面

2. 展示指定发布者 app 产品列表页面

3. 展示某关键字搜索结果

网页链接用http://开始的链接字串,在你的apk中可以使用market://开始的链接字串,参考下表:

For this resultWeb page linkAndroid app link
直接展示指定app详情页面http://play.google.com/store/apps/details?id=<package_name>market://details?id=<package_name>
展示指定发布者 app 产品列表页面 http://play.google.com/store/search?q=pub:<publisher_name> market://search?q=pub:<publisher_name>
展示某关键字搜索结果http://play.google.com/store/search?q=<query>market://search?q=<query>

在APP中可以用以下语句来打开相应页面。

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=com.example.android"));
startActivity(intent);

更多详情参考:http://developer.android.com/distribute/googleplay/promote/linking.html






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值