i am develpoing a map application with osm. i want to create some marker on my mapview. im using the folowwing code:
this.mMyLocationOverlay = new ItemizedOverlay<OverlayItem>(this, items,
new ItemizedOverlay.OnItemGestureListener<OverlayItem>() {
@Override
public boolean onItemSingleTapUp(final int index, final OverlayItem item) {
Toast.makeText(
SampleWithMinimapItemizedoverlay.this,
"Item '" + item.mTitle + "' (index=" + index
+ ") got single tapped up", Toast.LENGTH_LONG).show();
return true; // We 'handled' this event.
}
@Override
public boolean onItemLongPress(final int index, final OverlayItem item) {
Toast.makeText(
SampleWithMinimapItemizedoverlay.this,
"Item '" + item.mTitle + "' (index=" + index
+ ") got long pressed", Toast.LENGTH_LONG).show();
return false;
}
}, mResourceProxy);
...
but in line 2 under the "new ItemizedOverlay.OnItemGestureListener" i get a red line and an error that says fix project setup. i am very confiused. why i get this error in eclipse? please help me