Updated the Market URLs we use to conform to:

http://developer.android.com/guide/publishing/publishing.html#marketintent


git-svn-id: https://zxing.googlecode.com/svn/trunk@1935 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
dswitkin@google.com 2011-09-26 16:46:01 +00:00
parent 72b52f32c0
commit 08218b7a90
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ public abstract class ResultHandler {
private static final String GOOGLE_SHOPPER_PACKAGE = "com.google.android.apps.shopper";
private static final String GOOGLE_SHOPPER_ACTIVITY = GOOGLE_SHOPPER_PACKAGE +
".results.SearchResultsActivity";
private static final String MARKET_URI_PREFIX = "market://search?q=pname:";
private static final String MARKET_URI_PREFIX = "market://details?id=";
private static final String MARKET_REFERRER_SUFFIX =
"&referrer=utm_source%3Dbarcodescanner%26utm_medium%3Dapps%26utm_campaign%3Dscan";

View file

@ -43,7 +43,7 @@ public final class AppPickerActivity extends ListActivity {
@Override
protected void onListItemClick(ListView l, View view, int position, long id) {
if (position >= 0 && position < labelsPackages.size()) {
String url = "market://search?q=pname:" + labelsPackages.get(position)[1];
String url = "market://details?id=" + labelsPackages.get(position)[1];
Intent intent = new Intent();
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
intent.putExtra(Browser.BookmarkColumns.URL, url);