/** 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"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 ...
android:configChanges="orientation|screenSize"
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.