Is it possible to set up an open URI for Android application?
<p>From this article: <a href="http://developer.android.com/guide/publishing/publishing.html#marketintent" rel="nofollow">http://developer.android.com/guide/publishing/publishing.html#marketintent</a></p>

<p>Android Market could be invoked by an ACTION_VIEW intent with URI like </p>

<pre><code>http://market.android.com/details?id=&lt;packagename&gt; 
</code></pre>

<p>How does it work? Is the market.android.com return some info to browser to help it open the Android Market application? or just the browser locally does the trick?</p>

<p>Is it possible to set up an open URI who could do the same thing?</p>

<p>For example, I have an app called MyBooks(com.mybooks.app) and a site like:</p>

<pre><code>http://www.mybooks.com
</code></pre>

<p>an url could be</p>

<pre><code>http://www.myboos.com/details?id=0001
</code></pre>

<p>and when Browser opens this url, the site will return some kind of pre-defined response, which might contains an Intent action string, like "com.myboos.app.action.VIEW" and the queried id 0001.</p>

<p>Browser could then try to start an Activity using that action "com.mybooks.app.action.View", if there is an Activity for that, start it and pass the id in. If not, it tries to connect another URL like</p>

<pre><code>http://www.myboos.com/details?id=0001&amp;installed=false
</code></pre>

<p>Is this possible to work on any version of the Android?</p>
