title: android phonegap geolocation emulator
body: <p>I try to get get coordinates using geolocation on android emulator on phonegap platform. but it seems to not work. The code should be right, I add permission in manifest, use the highacuracy tag,  how can I address this problem? Thanks !</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Device Properties Example&lt;/title&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;
  
      // Wait for PhoneGap to load
      //
      document.addEventListener("deviceready", onDeviceReady, false);
  
      // PhoneGap is ready
      //
      function onDeviceReady() {
          navigator.geolocation.getCurrentPosition(onSuccess, onError,{ enableHighAccuracy: true });
      }
  
      // onSuccess Geolocation
      //
      function onSuccess(position) {
          var element = document.getElementById('geolocation');
          element.innerHTML = 'Latitude: '           + position.coords.latitude              + '&lt;br /&gt;' +
                              'Longitude: '          + position.coords.longitude             + '&lt;br /&gt;' +
                              'Altitude: '           + position.coords.altitude              + '&lt;br /&gt;' +
                              'Accuracy: '           + position.coords.accuracy              + '&lt;br /&gt;' +
                              'Altitude Accuracy: '  + position.coords.altitudeAccuracy      + '&lt;br /&gt;' +
                              'Heading: '            + position.coords.heading               + '&lt;br /&gt;' +
                              'Speed: '              + position.coords.speed                 + '&lt;br /&gt;' +
                              'Timestamp: '          + new Date(position.timestamp)          + '&lt;br /&gt;';
      }
  
      // onError Callback receives a PositionError object
      //
      function onError(error) {
          alert('code: '    + error.code    + '\n' +
                'message: ' + error.message + '\n');
      }
  
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;p id="geolocation"&gt;Finding geolocation...&lt;/p&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>