简体   繁体   中英

Evo 4g LTE opens browser instead of native app when following a Market URL

As part of my current project I've been tasked with collecting URL's for various applications on the official Android Market.

I have a market URL such as:

https://play.google.com/store/apps/details?id=com.endomondo.android.pro

On most devices when I follow a URL such as this I am presented with a pop-up asking if I want to open the link in the browser or with the Market Application.

However on the EVO 4g LTE device when I follow a URL such as this, I receive no prompt and instead it opens immediately in the browser.

Has anyone run across any other devices that do not properly handle market links? And does anyone know if there is some other magical URL I can use that would work properly on this device as well as all of the others? Note: I am not launching an intent here, the user will be clicking on this link outside of my application, so I can't use the market:// uri.

EDIT:

I've found this blurb on the doc page for Publishing on Google Play

Note: If you create a link to open Google Play from your web site and the user selects it from an Android-powered device, the device's Google Play application will resolve the link so the user can use the Google Play application on the device instead of opening the web site. As such, you should always use http://play.google.com/store/apps/ ... URIs when creating a link on a web page. When pointing to your apps from within your Android app, use the market:// URIs in an intent, so that the Google Play application always opens.

Which seems to indicate that the play app will "intercept" and resolve the link (as it seems to do on every other device).

So this may just be a bug with specific play store apk that is installed on this device.

EDIT 2 :

If I use a market uri the device correctly opens up the play store application. My next hurdle though is I need to be able to get click thru data from these links. The way I was doing it before was shortening them with bit.ly which also tracks the clicks for me. However bit.ly and goo.gl won't let me shorten a market:// uri string. Does anyone happen to know of a URL shortener that has click thru stats, and will allow me to shorten a market:// uri string even though it is not technically a valid URL?

You can try the older 'market://' scheme to see if that works out. Apparently there have beein some patent issue regarding the activity chooser displayed when you click on a link, and on some HTC devices it has been disabled. You might be hitting this. You could try with other URLs that open in native apps (like for Google+, Picasa, Gmail) to check how your device handles them.

Has anyone run across any other devices that do not properly handle market links?

Many newer HTC models will have this behavior.

And does anyone know if there is some other magical URL I can use that would work properly on this device as well as all of the others?

Use market:// . Due to the nature of HTC's change, all http:// URLs will go to whatever the user has established as their preferred activity for such URLs, which will normally be a browser.

Does anyone happen to know of a URL shortener that has click thru stats, and will allow me to shorten a market:// uri string even though it is not technically a valid URL?

Push come to shove, set up your own HTTP URL someplace that can do a redirect for you to your market:// URL, and use that URL. The usability on this stinks, insofar as the user will get a browser, then the Play Store.

My understanding of the patent bickering was that it was the act of scanning the text and linkifying it, not the choice the user was presented with.

HTC's workaround for the patent dispute, unfortunately, can be best described as "swatting a fly with a Buick".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM