market:// not supported, despite Android documentation
<p>I'm implementing in-app purchase for an Android app from within a web view. The purchase is meant to be completed via Amazon's MP3 app. If the user does not have it installed, I want to open the Market app so they can download it before attempting to complete their purchase.</p>

<p>According to <a href="http://developer.android.com/guide/publishing/publishing.html#marketintent" rel="nofollow">the official Android documentation</a>, the following JavaScript should work:</p>

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

<p>However, when I call that, I get a view that is blank except for a link to that link and half an upside-down Android dude poking out the top left of the view (you can't make this stuff up).</p>

<p>Anyone know why this might not be working? I've tested it on multiple handsets all running Android 2.1 and above. TIA for any help!</p>

<p><strong>UPDATE:</strong> Thanks to @<a href="http://twitter.com/jtkendall" rel="nofollow">jtkendall</a> on Twitter for <a href="http://samstewartapps.com/blog/2010/10/12/open-the-android-market-from-an-app/" rel="nofollow">this post</a> that talks about how this behavior changed recently. Looks like this has to be implemented in native code.</p>
