/** 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"
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.