Sunday, 15 May 2011

javascript - How to get latitude and longitude by android phone internal gps without using any network connection -



javascript - How to get latitude and longitude by android phone internal gps without using any network connection -

i using samsung tablet, working on application, require longitude , latitude on basis of gps without using network connection. please suggest me simple ways. shall take if there html , javascript based programme. want longitude , latitude, save in text file.

using js can

<script> var x = document.getelementbyid("demo"); function getlocation() { if (navigator.geolocation) { navigator.geolocation.getcurrentposition(showposition); } else { x.innerhtml = "geolocation not supported browser."; } } function showposition(position) { x.innerhtml = "latitude: " + position.coords.latitude + "<br>longitude: " + position.coords.longitude; } </script>

javascript android html5 gps apk

No comments:

Post a Comment