title: Geolocation Phonegap Android not working
body: <p>I have tried everything to get geolocation working on my emulator (target 2.2), I have used telnet and issued a 'geo fix ' followed by the longitude and latitude. I have edited my Android manifest to give me permission but I am not sure why it will not show me the google map which is centered around my location. If I put any coordinates into the setcentered function for the map but when I put in my coordinates it doesn't show up.
  This is the code I have been examining for hours:</p>
  
  <pre><code>&lt;!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="content-type" content="text/html; charset=utf-8"/&gt;
  &lt;title&gt;Google Maps JavaScript API Example&lt;/title&gt;
  &lt;script src="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=AIzaSyBrnId8UIeAeDTMr2sVi-g86izgdb2KhVo&amp;sensor=true"
  type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  // Wait for PhoneGap to load
  // PhoneGap is ready
  document.addEventListener("deviceready", onDeviceReady, false);
  navigator.geolocation.getCurrentPosition(geolocationSuccess, [maximumAge: 3000, timeout:          5000, enableHighAccuracy: 
  &lt;!--position.coords.latitude--&gt;
  initialize() 
  (GBrowserIsCompatible()) 
  map = new GMap2(document.getElementById("map_canvas"));
  map.setCenter(new GLatLng(position.coords.latitude,position.coords.longitude), 13)
  map.setUIToDefault();
  // Add 10 markers to the map at random locations
  var bounds = map.getBounds();
  var southWest = bounds.getSouthWest();
  var northEast = bounds.getNorthEast();
  var lngSpan = northEast.lng() - southWest.lng();
  var latSpan = northEast.lat() - southWest.lat();
  }
  }      
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="initialize()" onunload="GUnload()"&gt;
  &lt;div id="map_canvas" style="width: 500px; height: 300px"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>Thank you in advance, I have been trying to solve this for so many hours, what I need is for google maps to appear and the centre of google maps is my location.</p>