mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 19:57:27 -08:00
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:
parent
72b52f32c0
commit
08218b7a90
|
@ -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";
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue