I just downloaded the Android 3.0 SDK and booted up an emulator with it. I rotated the emulator to portrait mode with Ctrl-F12 and then opened and the activity that was bui
The easiest way to tackle that problem is to just flip the display of your host system.
On the Mac you can do this in System Preferences > Display
on Windows there is a keyboard shortcut: ctrl + alt + arrow key
. (see here: https://superuser.com/questions/554589/how-can-i-horizontally-flip-invert-my-monitor-not-rotate and here: http://osxdaily.com/2010/12/28/rotate-mac-screen-orientation/)
And if you have a standalone trackpad you can just turn it around physically to have your mouse pointer move naturally.
I had the same problem, in my case when I rotated the emulator to portrait, the "desktop" would show correct. However the app would run upside down.
(This worked for v4 Ice Cream) So, in portrait mode, in the bottom right corner of the emulator, select the settings and set "Auto-rotate screen" to OFF. Run the app now and it will show correct.
Some of the emulator targets like 4.4 (API level 19) and 2.3 have a bug. Change your emulator to target version 4.2 or 4.3 and try to change the orientation or try to disable hardware keyboard.
The same thing just happened to me with a KitKat emulator whenever I setup the AVD with a default orientation of Landscape. Switching the default to Portrait fixed the problem.
Well , there can be one of the 2 cases ,
1 - I misinterpreted your question , in which case i am extremely sorry
2 - The problem has been solved in the latest download of the android 3.0 Sdk(i just downloaded 1 right now )
Here , i am posting the screen shot of my AVD running 3.0 and a 2.2 Hello World Activity .
I had this same issue when I was forcing portrait by setting screen orientation to "portrait" in the manifest file. When I made my app support rotation, and switched screen orientation back to "unspecified" the issue went away.
If you don't want to support rotation, just change the manifest while you test, and before you open the app, rotate the emulator so it opens in portrait.