Market: // not supported, despite Android documentation

I am embedding the application in an application for an Android application from a web view. The purchase must be completed through the Amazon MP3 app. If the user has not installed it, I want to open the Market application so that he can download it before trying to complete the purchase.

According to the official Android documentation , the following JavaScript should work:

window.location.href = 'market://details?id=com.amazon.mp3'; 

However, when I call it, I get a view, empty, except for the link to this link, and a half-inverted Android dude popping up in the upper left corner of the view (you cannot do this).

Does anyone know why this might not work? I tested it on several phones running Android 2.1 and above. TIA for any help!

UPDATE: Thanks to @ jtkendall on Twitter for this post , which talks about how this change has changed recently. It seems like this should be implemented in native code.

+6
javascript android
source share
1 answer
+1
source share

All Articles