I think everyone was a little right, it seems like an error in the API for me. I should be able to inflate the view and use the map in it, if I remember the view, then delete it or view it again without errors.
The simplest workaround was to remove inflation or setContentView using xml and go with the dynamic assembly of the map and then save it in memory.
I deleted:
// Show Map Settings Screen setContentView(R.layout.set_map_center); // Initiate the center point map if (mapView == null) { mapView = (MapView) findViewById(R.id.mapview); }
And replaced it with:
if (mapView == null) { // public MapView mapView = null; // Public defined Variable mapView = new MapView(this, this.getString(R.string.APIMapKey)); } setContentView(mapView);
This works great and gives me the ability to call a card. Thank you for answering everyone.
source share