Android:链接到你的产品(Linking to Your Products)
来源:互联网 发布:药智数据库会员 编辑:程序博客网 时间:2024/05/17 16:15
Linking to Your Products
For a link that includes the Google Play brand icon, check out the Badges page.
Google Play provides several link formats that let you bring users to yourproducts in the way you want, from Android apps, web pages, ads, reviews,articles, social media posts, and more.
The link formats let you:
- Link to a specific app's product details page
- Link to a list of all of your apps, or
- Link to a search result of your choice
- Link to a collection on Google Play
If you are linking from an Android app, you can also control whether the linklaunches the Play Store application or the browser, which takes the userto the Google Play web site.
Linking to a Product Details Page
Use the format below to deep-link users directly to a specific app's productdetails page. At the product details page, users can see the app description,screenshots, reviews and more, and then install it.
To create the link, you need to know the app's fully qualified packagename, which is declared in the app'smanifestfile. The package name is also visible in the Developer Console.
- From a web site:
http://play.google.com/store/apps/details?id=<package_name>
- From an Android app:
market://details?id=<package_name>
Here's an example:
http://play.google.com/store/apps/details?id=com.google.android.apps
For details on how to send the link in an Android app, see Linking from an Android App.
Linking to a Product List
Use the format below to link users to a list of apps published by you. Theproduct list lets users see all of the apps from a specific publisher, withratings, editorial badges, and an Install button for each.
To create the link, you need to know your publisher name, which isavailable from the Developer Console.
- From a web site:
http://play.google.com/store/search?q=pub:<publisher_name>
- From an Android app:
market://search?q=pub:<publisher_name>
Here's an example:
http://play.google.com/store/search?q=pub:Google Inc.
For details on how to send the link in an Android app, see Linking from an Android App.
Linking to a Search Result
Use the format below to link users to a search query result on Google Play.The search result page shows a list of apps (and optionally other content) thatmatch the query, with ratings, badges, and an Install button for each.
To create the link, you just need a search query string. If you want thequery to search outside of the Google Play Apps listings, you can remove the&c=apps
part of the link URL.
- From a web site:
http://play.google.com/store/search?q=<search_query>&c=apps
- From an Android app:
market://search?q=<seach_query>&c=apps
Here's an example:
http://play.google.com/store/search?q=maps&c=apps
For details on how to send the link in an Android app, see Linking from an Android App.
Linking to a Collection
If your app is featured or appears in one of the Google Play Top charts orcollections, you can use the format below to link users directly to thecollection. The collection shows a ranked list of apps in the collection, withratings, short descriptions, and an Install button.
- From a web site:
http://play.google.com/store/apps/collection/<collection_name>
- From an Android app:
market://apps/collection/<collection_name>
Here's an example:
http://play.google.com/store/apps/collection/editors_choice
For details on how to send the link in an Android app, see Linking from an Android App.
Linking from an Android App
There are two general formats for links that are accessible to users onAndroid devices, The two formats trigger slightly different behaviors on thedevice:
market://
Launches the Play Store app to load thetarget page.http://
Lets the user choose whether to launch thePlay Store app or the browser to handle the request. If the browser handles therequest, it loads the target page on the Google Play web site.
In general, you should use http://
format for links on web pagesandmarket://
for links in Android apps.
If you want to link to your products from an Android app, create an Intent
that opens an Google Play URL, as shown in the examplebelow.
Intent intent = new Intent(Intent.ACTION_VIEW);intent.setData(Uri.parse("market://details?id=com.example.android"));startActivity(intent);
Summary of URL formats
The table below provides a summary of the URIs currently supported by the Google Play (both onthe web and in an Android application), as discussed in the previous sections.
http://play.google.com/store/apps/details?id=<package_name>
market://details?id=<package_name>
Show apps by a specific publisherhttp://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>
- Android:链接到你的产品(Linking to Your Products)
- 链接基本原理(Linking)
- 链接(Linking)
- Data Products(数据产品)
- Deep Linking(深度链接)
- Flex里的深度链接(Deep Linking)
- 【调研】关于Entity Linking(实体链接)的材料收集
- 带你玩转Visual Studio——incremental linking(增量链接)的作用
- 带你玩转Visual Studio——incremental linking(增量链接)的作用
- 关于VC++的增量链接(Incremental Linking)
- 关于VC++的增量链接(Incremental Linking)
- SWFAddress--深度链接(Deep linking)
- 深度链接(Deep linking)--2
- Hook Adobe Products For Data Protection (拦截adobe的产品,保护数据安全)
- opencart插件之 Also Bought Products(购买该产品的用户也购买了)
- gcc链接.cpp和.c文件生成的.o库文件的时候,Linking error "undefined reference to `__gxx_personality_v0'"
- Display your products in random order in magento?(随机排列产品)
- How to stream video to your android phone 如何将视频远程传输至你的android手机?
- HDU 4125 Moles 树状数组 + KMP
- 最近工作重点转移, 也很少更新博客了啊
- struts1+struts2+spring实例化action的线程安全问题
- jQuery对select、radio和checkbox的操作
- android 做一个新的覆盖物(Overlay)
- Android:链接到你的产品(Linking to Your Products)
- struts1和struts2的几点区别
- 使用EditText+ListView并结合TextWatcher实现输入关键字筛选数据
- 调试信息格式(Debugging Format)简介
- IT行业为什么需要更多的女性?
- JTree像QQ一样显示图片
- Sigar简介
- 飞思卡尔推出了嵌入式多核处理器
- android上通过反射,获取存储器列表