thanks for your reply plusminus,
but I don't call the constructor of the overlay in my MapActivity, I call this in my MapView, so I can retrieve the MapView in my Overlay, but I want to retrieve my MapActivity in my MapView and in my Overlay...
and I can't pass my mapActivity to the constructor of my MapView because I don't use a constructor, I use setContentView() to call my mapView in my mapActivity like this :
Using java Syntax Highlighting
public class Map extends MapActivity {
private MapLocationViewer mapView;
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.map);
mapView = (MapLocationViewer)this.findViewById(R.id.map_location_viewer);
}
}
Parsed in 0.035 seconds, using
GeSHi 1.0.8.4
have you a solution for that ?