Cell emulator upside down screen in portrait

I just tested an application developed for Android 2 on emulator 3.2. The application only supports portrait mode, so in landscape mode, by default, the emulator rotates 90 ° (like on Android 2).
If, however, I turn the emulator into portrait mode, the opposite is shown on the screen by 180 °. This means that what should be on top is at the bottom of the screen and vice versa. This is not only an application, but also an Android status bar.
If I leave (application), the problem will disappear.
I tested the application on several phones and emulators, this never happened with Android 2. Failed to test on a real cellular device.

+6
source share
3 answers

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

If it is 2.3.1 or higher, open the androidmanifest file. On the application tab, select an action. Then scroll down to the screen orientation and select sensorPortait from the drop-down menu.

enter image description here

+8
source

has been fixed by changing config.ini properties in

%SYSTEM_DRIVE%\Users\%USER_NAME%\.android\avd\YOUR_AVD_NAME_HERE 

The form

 skin.path=1280x720 

to

 skin.path=720x1280 

hope that helps you

+3
source

You can rotate the emulator screen by pressing 7 or 9 on numpad (windows)

+1
source

Source: https://habr.com/ru/post/894839/


All Articles