要想指引用户到推管产品页面有以下选择,
1. 直接展示指定app详情页面
2. 展示指定发布者 app 产品列表页面
3. 展示某关键字搜索结果
网页链接用http://开始的链接字串,在你的apk中可以使用market://开始的链接字串,参考下表:
For this result | Web page link | Android 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