Unlike the accepted answer , I found that keyboard|keyboardHidden not enough. I worked with a Logitech Bluetooth keyboard ( model # JNZYR0021 ).
What kind of work is this:
<activity ... android:configChanges="orientation|screenSize|keyboard|keyboardHidden|navigation" />
Apparently, this Logitech keyboard also changes navigation , which is strange because Android docs says:
Changed the type of navigation (trackball / dpad). (This should never happen normally.)
Show drawing.
nlawson
source share