Here the following code i have, but there’s error. Can someone help?
public void onLocationChanged(Location loc) {
// TODO Auto-generated method stub
GeoPoint point = new GeoPoint(loc.getLatitude(),loc.getLongitude());
OverlayItem overlayitem = new OverlayItem(point, "My Current Location", "My Current Location");
overlay.addOverlay(overlayitem);
mapOverlays.add(overlay);
}
Actually,
GeoPointstores coordinates in microdegrees, so to convertLocationtoGeoPointyou’ll use this code:Hope this helps