Is there a way to remove a view that was set with
setContentView(R.layout.set_map_center);
mapView = (MapView) findViewById(R.id.mapview);
If I call this view again then I get an error saying:
java.lang.IllegalStateException: You are only allowed to have a single MapView in a MapActivity
((ViewGroup)mapView.getParent()).removeView(mapView);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With