How to set a search link or a direct link into the Android market


There are two ways to link to the Android market from your phone or in an app.

1. Link to a search in the android market

1.1. with the UNIQUE package name (search will only give ONE result)
market://search?q=pname:com.google.android.apps.maps
Look up package name under http://www.cyrket.com/(search the app and see the URL i.e. p/android/com.google.android.apps.maps/, where „com.google.android.apps.maps“ is the package name. Additionally the link behind the QR-Code gives you the ready link.)

1.2. with a searchterm, like „google“

market://search?q=google

1.3. all applications of one specific publisher

market://search?q=pub:Google+Inc.

2. Direct link to an app-page / „details“ in the android market

use „details?“ instead of „search?“ and send the package name.
market://details?id=com.google.android.apps.maps

3. … and to do it programmatically / some source code

String url = „market://details?id=com.google.android.apps.maps“;
//OR for search link: String url = „market://search?q=pname:com.google.android.apps.maps“;
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
More Information in the Android Developer Documentation