您的位置:首页 > 移动开发 > Android开发

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

2013-11-01 17:09 232 查看
要想指引用户到推管产品页面有以下选择,

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息