title: Open Play Store with PhoneGap
body: <p>I'm developing a very simple webapp with Phonegapp, and I want to open the Play Store APP (Android), when the user clicks on a specific button. I read some q%a but I don't know how I can do it
  I have a index.html like this:</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Just a development test -&gt;dany_danay&lt;/title&gt;
  
      &lt;link href="jquery-mobile/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css"/&gt;
      &lt;script src="jquery-mobile/jquery-1.5.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="jquery-mobile/jquery.mobile-1.0a3.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript" charset="utf-8" src="phonegap.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8"&gt;
      var watchID = null;
      var pictureSource;   // Origen de la imagen
      var destinationType; // Formato del valor retornado
  
      // Espera a que PhoneGap conecte con el dispositivo.
      //
      document.addEventListener("deviceready",onDeviceReady,false);
  
      function alertDismissed() {
          // do something
      }
  
  
  
  
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
  
  
  &lt;div data-role="page" id="page"&gt;
      &lt;div data-role="header"&gt;
          &lt;h1&gt;Your SmartPhone info&lt;/h1&gt;
      &lt;/div&gt;
  
  
  
      &lt;center&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.tusmartphone.dany&amp;feature=search_result#?t=W251bGwsMSwyLDEsImNvbS50dXNtYXJ0cGhvbmUuZGFueSJd" rel="external" /&gt;&lt;img src="http://media.go2speed.org/brand/files/offermobi/1981/20130605194659-WARFAL_b01_320X50_04.png"/&gt;&lt;/a&gt;
  
  
      &lt;/center&gt;
  
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I tried adding rel="external" or rel="system" in the 
  and this js function:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(function() {
    updateAndroidMarketLinks();
    // some more core here ... 
  
    function updateAndroidMarketLinks()
    {
      var ua = navigator.userAgent.toLowerCase();
      if (0 &lt;= ua.indexOf("android")) {
        // we have android
        $("a[href^='http://play.google.com/']").each(function() {
          this.href = this.href.replace(/^http:\/\/play\.google\.com\//,
            "market://");
        });
      }
    }
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I have to call a intent, but not sure how i can do this with html or js...
  Dont know how to prove this: <a href="https://stackoverflow.com/questions/15325864/phonegap-android-open-play-store">https://stackoverflow.com/questions/15325864/phonegap-android-open-play-store</a> or this: <a href="https://stackoverflow.com/questions/13308107/how-to-open-google-play-store-from-phonegap">How to Open Google Play store from Phonegap</a> <a href="http://tannerburson.com/blog/2012/05/28/IntentChooser-my-first-PhoneGap-Cordova-plugin/" rel="nofollow noreferrer">http://tannerburson.com/blog/2012/05/28/IntentChooser-my-first-PhoneGap-Cordova-plugin/</a></p>