Am using android:configChanges="keyboardHidden|orientation"for switching between portrait and landscape modes. But when user opens softkeyboard in portrait and changes to landscape keyboard should hide or dissappera but its not happening with that.
Am using android:configChanges=keyboardHidden|orientation for switching between portrait and landscape modes. But when user opens
Share
If you are intercepting
orientationwithout overridingpublic void onConfigurationChanged(Configuration newConfig)in yourActivityit is normal that the keyboard remains open.You can either
override this method to reset the display
or avoid intercepting
orientationto let theActivityrestart (in which case yourActivitywill be reinitialized andonCreate()will be called again)