In addition, you may need to add the following to your activity element:
android:configChanges="keyboardHidden"
Thus, the OS will not change orientation when the user opens the sliding keyboard.
Tim Mahoney Feb 18 '11 at 19:48 2011-02-18 19:48
source share