5

I have my android:screenOrientation="portait" on but when a physical keyboard is opened it doesn't rotate the screen as I wanted, but it restarts the app. It seems to run onCreate over again or something. Can someone point me in the right direction and/or tell me how to intercept this and handle it? Thanks.

jdphenix
  • 15,022
  • 3
  • 41
  • 74
Cameron
  • 1,612
  • 2
  • 16
  • 24

1 Answers1

4

Apart from android:screenOrientation="portait" try adding android:configChanges="keyboardHidden|orientation|keyboard"

Cristian
  • 198,401
  • 62
  • 356
  • 264