android - get the current location of lon and lat and put into a GeoPoint?
<blockquote>
  <p>Here the following code i have, but there's error. Can someone help?</p>
</blockquote>

<pre><code>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);

    }
</code></pre>
