I have correctly configured application, which runs in landscape only. When I run it on Emulator (v.24.4.0.0), the Android starts in portrait mode. Application runs in landscape, but picture is rotated and header of window is hidden, because in portrait mode emulator does not fit. I can rotate it by LeftCTRL + F12. Next I can press Alt + Space a choose Move to show whole window, but it is not nice.
If you could help me to force the default orientation as landscape, you make me happy : )
In Emulator and AVD Manager I don't see any settings, where I could make this preference. Config.ini in my avd directory contains:
hw.initialOrientation=landscape
Thank you!
In AVD Manager, use "Edit" button and choose another device, labeled as "tablet", which is landscape by default. Note screen dimensions, where X should be greater than Y.
If none of predefined devices satisfy your needs, you can switch to the "Device definitions" tab of AVD Manager and create your own device. I prefer light screens e.g. 800x480 which are emulating faster. Then use "Create AVD" button to define new emulator instance.