error in adding overlay in current location
how to add overlay item in my current location in this code this is my code of adding over lay item in my current location but i get this error
enter code here
public class MyLocationListener implements LocationListener
{ @Override
public void onLocationChanged(Location loc)
{
GeoPoint point = new GeoPoint( (int) (loc.getLatitude() * 1E6),
(int) (loc.getLongitude() * 1E6));
mapOverlays = mapView.getOverlays();
drawable11 = this.getResources().getDrawable(R.drawable.vitblue);
itemizedOverlay11= new HelloItemizedOverlay(drawable11,this);
OverlayItem over11 = new OverlayItem(point, "offff", "over5");
itemizedOverlay11.addOverlay(over11);
//开发者_如何学GoThe constructor HelloItemizedOverlay(Drawable, tryanabtry.MyLocationListener) is undefined
Make sure you include the class HelloItemizedOverlay in your project and you are calling the constructor correctly....
精彩评论