From 5da76ddd575b22d45bbea0155f62c7c32e1a510e Mon Sep 17 00:00:00 2001
From: Dirk Dougherty
The URI that you supply with the Intent lets the system route the intent properly and also expresses the type of action that you want Market to perform -after launch. Currently, you can have Market initiate a search for applications -on Android Market, based on query parameters that you provide. For example, you -can specify URIs to search for applications by:
+after launch. Currently, you can have Market take these actions: + +Your application can initiate a search on Android Market for applications +that match the query parameters that you provide. To do so, your application +sends an ACTION_VIEW Intent that includes a URI and query parameters in this +format:
+ +market://search?q=<paramtype>:<value>
Searches on Android Market
+When you initiate a search, Android Market returns results from matches in +the public metadata supplied by developers in their Android Market profiles or +application publishing information, but not from the developer's private account +or from the certificate used to sign the application.
+Using this URI format, you can search for applications by:
Note that the URI queries return results from the public metadata supplied by -developers in their Android Market profiles or application publishing -information, but not from the developer's private account or from the -certificate used to sign the application.
+The table at the bottom of this page specifies the paramtypes
+and values
that correspond to each of these types of search.
When you send an intent to initiate a search for applications, Market sends +the search query to the server and displays the result. To the user, the +experience is something like this:
+ +In Android Market, every application has a Details page that provides an +overview of the application for users. For example, the page includes a short +description of the app and screen shots of it in use, if supplied by the +developer, as well as feedback from users and information about the developer. +The Details page also includes an "Install" button that lets the user trigger +the download/purchase of the application.
+ +If you want to refer the user to a specific appplication, your application +can take the user directly to the application's Details page. To do so, your +application sends an ACTION_VIEW Intent that includes a URI and query parameter +in this format:
+ +market://details?id=<packagename>
In this case, the packagename
parameter is target application's
+fully qualified package name, as declared in the package
attribute
+of the manifest
element in the application's manifest file. For example:
market://details?id=com.example.android.jetboy
The table below provides a list of URIs and actions currently supported by the Market application.
+Note that these URIs work only when passed as Intent data — you +can't currently load the URIs in a web browser, either on a desktop machine or +on the device.
+For this Result | +For this Result | Pass this URI with the ACTION_VIEW Intent | -Comments | +Comments |
---|---|---|---|---|
Search for an application by its fully qualified Java package name and display the result. | @@ -191,8 +262,8 @@ matches.||||
Search for applications by developer name and display the results. | -http://market.android.com/search?q=pub:"<Developer Name>"
-ormarket://search?q=pub:"<Developer Name>" |
+http://market.android.com/search?q=pub:<Developer Name>
+ormarket://search?q=pub:<Developer Name> |
Searches only the "Developer Name" fields of Market public profiles. Returns exact matches only. | Returns a list of applications meeting all the supplied parameters. |
Note that these URIs work only when passed as intent data — you -can't currently load the URIs in a web browser, either on a desktop machine or -on the device.
\ No newline at end of file -- cgit v1.1