Please explain me, what are you discussing about?(1) Map Rotation or (2) device flipping (and map rotation as result of it)?(1) - Clear - it works.(2) - Need to write code around it 😄onRetainNonConfigurationInstance()NB! This method is deprecated.public void onCreate(Bundle savedInstanceState) {
// ...
mapView = (MapView) findViewById(R.id.map);
// ...
Object[] init = (Object[]) getLastNonConfigurationInstance();
if (init != null) {
mapView.restoreState((String) init[0]);
tiledMapServiceLayer = (ArcGISTiledMapServiceLayer) init[1];
graphicsLayer = (GraphicsLayer) init[2];
} else {
mapView.setExtent(new Envelope(-85.61828847183895, 38.19242311866144, -85.53589100936443, 38.31361605305102));
tiledMapServiceLayer = new ArcGISTiledMapServiceLayer(this, mapURL);
graphicsLayer = new GraphicsLayer(this);
}
// ...
}
// ...
public Object onRetainNonConfigurationInstance() {
Object appState = new Object[] { mapView.retainState(), tiledMapServiceLayer, graphicsLayer };
mapView.removeAll();
return appState;
}
setRetainInstance(boolean)We has no time to try it ... So, when you solve problem paste your code.Good luck.P.S. This link (PDF) as bonus (contains link to WaterServiceApplication sample)