title: Is it possible to set up an open URI for Android application?
body: <p>From <a href="http://developer.android.com/guide/publishing/publishing.html#marketintent" rel="nofollow noreferrer">this</a> article: </p>
  
  <p>Android Market could be invoked by an <strong>ACTION_VIEW</strong> 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 contain an Intent action string, like "com.myboos.app.action.VIEW" and the queried id 0001.</p>
  
  <p>The 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>