@Override protected void onDestroy() { super.onDestroy(); if (mapView != null) { mapView.clean(); mapView = null; } if (!onRetainCalled) { mapComponent.stopMapping(); mapComponent = null; } }