I am using a MapView with a default location. If I go to another location on the map and then change the orientation of the device, the orientation does not save my previous location. It starts from the default location!
How can I avoid this? I do not want to disable the screen-oreintation change for my application.
Use the method
onRetainNonConfigurationInstance()to save the location and then usegetLastNonConfigurationInstance()inonCreate()to restore the selected item.