title: Can I launch an intent using only javascript in an Android browser?
body: <p>I have a html page that shows the directions from the current location to a certain address.</p>
  
  <p>I would like to do the same but use the map app instead of showing it in a browser.</p>
  
  <p>When I use :</p>
  
  <pre><code>&lt;script&gt;
      document.location = "geo:0,0?q=myaddress";
  &lt;/script&gt;
  </code></pre>
  
  <p>That works fine but does not show me  the route.</p>
  
  <p>What I read from this : <a href="https://stackoverflow.com/questions/2853017/android-google-directions-service-usable-natively-with-wrapper-framework-publi">Android Google Directions Service usable natively? with wrapper framework? Public transit/biking directions available?</a></p>
  
  <p>It should be possible using this code :</p>
  
  <pre><code>String url = "http://maps.google.com/maps?saddr=some+address&amp;daddr=another+Address"
  Intent intent = new Intent(android.content.Intent.ACTION_VIEW,  Uri.parse(url));
  </code></pre>
  
  <p>Can I do the same just using javascript ?</p>