Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

honeycomb emulator reversed screen in portrait

I just tested an app developed for Android 2 on the 3.2 emulator. The app supports only portrait mode, thus in default landscape mode of the emulator it's rotated by 90° (as on Android 2).
If however I rotate the emulator to portrait mode, the screen is shown reversed by 180°. That means, what should be on top is on the bottom of the screen and the other way round. It's not only the app, but also the Android status bar.
If I exit (background) the app, the issue disappears.
I've tested the app on several Phones and emulators, this never happened with Android 2. Can't test on a real Honeycomb device yet.

like image 630
didi_X8 Avatar asked Aug 11 '11 13:08

didi_X8


1 Answers

what version of android 2 are you developing, 2.1, 2.2, 2.3.1 or 2.3.3.

If it's 2.3.1 and higher then open your androidmanifest file. In the application tab select an activity. Then scroll down to screen orientation and select sensorPortait in the drop-down menu.

enter image description here

like image 196
HunterX86 Avatar answered Nov 15 '22 02:11

HunterX86