i'm developing simple webapp phonegapp, , want open play store app (android), when user clicks on specific button. read q%a don't know how can have index.html this:
<!doctype html> <html> <head> <title>just development test ->dany_danay</title> <link href="jquery-mobile/jquery.mobile-1.0a3.min.css" rel="stylesheet" type="text/css"/> <script src="jquery-mobile/jquery-1.5.min.js" type="text/javascript"></script> <script src="jquery-mobile/jquery.mobile-1.0a3.min.js" type="text/javascript"></script> <script type="text/javascript" charset="utf-8" src="phonegap.js"></script> <script type="text/javascript" charset="utf-8"> var watchid = null; var picturesource; // origen de la imagen var destinationtype; // formato del valor retornado // espera que phonegap conecte con el dispositivo. // document.addeventlistener("deviceready",ondeviceready,false); function alertdismissed() { // } </script> </head> <body> <div data-role="page" id="page"> <div data-role="header"> <h1>your smartphone info</h1> </div> <center><a href="https://play.google.com/store/apps/details?id=com.tusmartphone.dany&feature=search_result#?t=w251bgwsmswyldesimnvbs50dxntyxj0cghvbmuuzgfuesjd" rel="external" /><img src="http://media.go2speed.org/brand/files/offermobi/1981/20130605194659-warfal_b01_320x50_04.png"/></a> </center> </body> </html>
i tried adding rel="external" or rel="system" in , js function:
<script type="text/javascript"> $(function() { updateandroidmarketlinks(); // more core here ... function updateandroidmarketlinks() { var ua = navigator.useragent.tolowercase(); if (0 <= ua.indexof("android")) { // have android $("a[href^='http://play.google.com/']").each(function() { this.href = this.href.replace(/^http:\/\/play\.google\.com\//, "market://"); }); } } }); </script>
i have call intent, not sure how can html or js... dont know how prove this: https://stackoverflow.com/questions/15325864/phonegap-android-open-play-store or this: how open google play store phonegap http://tannerburson.com/blog/2012/05/28/intentchooser-my-first-phonegap-cordova-plugin/
you want use market links.
market://details?id=<package_name>
http://developer.android.com/distribute/googleplay/promote/linking.html
Comments
Post a Comment