/** Called by the system, as part of destroying an activity due to a configuration change. */ @Override public Object onRetainNonConfigurationInstance() { return mMapView.retainState(); }
android:configChanges="orientation|screenSize"
android:configChanges="orientation|screenSize"Add this bit of code to your manifest -> activity.In android 4.x screenSize flag is a must, as it also triggers activity to be recreated.Edit: Also, it would be great if someone updated SDK samples to include this for android 4.x ...
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.