Android Activity Restarted At Orientation Change Even With Configchanges Set
I have an Android library project and the main application that uses this library project. The manifest file of the main application looks as follows:
Solution 1:
You need to add keyboard|keyboardHidden
to the android:configChanges
attribute. Certainly on the emulator (and on certain devices, I think), when you change orientations the keyboard state also changes. This is also needed to prevent double-restarts of your activity when you don't have it handling orientation changes.
Post a Comment for "Android Activity Restarted At Orientation Change Even With Configchanges Set"