Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Impossible to rotate the emulator with android 4.4 [duplicate]

These appear to be bugs in the Android 4.4 emulator. You may wish to track the issues that I filed regarding the orientation change bug and the overflow affordance bug.

Thanks for pointing these out!


There appears to be a bug in the emulator as described by CommonsWare, however, if you desperately need to debug an app in landscape mode on the 4.4 emulator you can:

  1. Start the Camera app on the emulator which will rotate the screen.
  2. Now exit the app, the home screen should now be sideways.
  3. Pressing Ctrl + F11 will do the trick. (Ctrl + fn + F11 on mac).

Until it is fixed I use this free application "Set Orientation". Install the apk into emulator using adb install.


I have found that this bug depends on which device type I select for the virtual-machine. If I set the device type as a "Nexus 7", it won't allow rotations. But if I set the device type as a generic 7" tablet, with all of the same options, rotations will work fine.


In manifestfile.xml can put android:screenOrientation="landscape". When it has been Loaded you will see every app in landscape mode


There is a work around for this. It seems the settings from the GUI isn't saved to the ini files. I had to manually edit fields "hw.keyboard=no" in both config.ini & hardware-qemu.ini within your avd directory.