When I switch to landscape mode (NUMPAD 7 or CTRL+F11) the emulator rotates the screen to landscape orientation but the Android OS and none of the apps rotate. So everything is sitting sideways. Is there something in the AVD configuration that needs to be set in order for the device to rotate properly?
20 Answers
It is a bug with the 2.3 and 4.4 emulators.
http://code.google.com/p/android/issues/detail?id=13189 [v2.3]
https://code.google.com/p/android/issues/detail?id=61671 [v4.4]
As of mid 2015 the issue is still open and logged in the android bug tracker here's the link you can check it out https://code.google.com/p/android/issues/detail?id=61671
None of the above solutions worked for me and i am using Android 4.4.2 emulator. As a work around in your graphical layout you can change the orientation and check it out.
Once you click the change orientation button, a small icon displays on the emulator asking if you want to change the orientation of the emulated screen. It only displays for a few seconds, so look next to the "bottom" icons and you will see this temporary icon.
This works with the emulator keyboard on or off.
I am running Pixel 2 API 29, Android 10.0 (latest versions as at today)
I made a silly mistake and spent a lot of time for the problem on API 30. Checked Auto-rotate
setting and other answers here but tried the rotation on the main Android screen, which is not rotated! You need to open some app (your own or a default one, like 'Messages' or 'Browser') to see the rotation works.
Only way to get this to work is to use FroYo API AVD
For anyone with this issue, this is how I set up old Froyo AVD to test this scenario:
My Manifest min version is already 8, which is Froyo
< uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" />
You can see SDK_API_VERSION information here. http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
In the SDK manager Installed the needed version:
http://screencast.com/t/KKZokotI4T
Created a new AVD for the new version.