Impossible to rotate the emulator with android 4.4

AndroidAndroid EmulatorAndroid 4.4-Kitkat

Android Problem Overview


I've updated my sdk to the latest version (android 4.4) and I started the emulator, but now it seems not possible to rotate the screen with CTRL+F11, the screen change but all the applications don't change. I don't know if it's a related issue but I can see that even if I created a new emulator with menĂ¹ hw button, now all the applications have the overflow button.

Android Solutions


Solution 1 - Android

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!

Solution 2 - Android

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).

Solution 3 - Android

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

Solution 4 - Android

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.

Solution 5 - Android

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

Solution 6 - Android

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.

Solution 7 - Android

As a workaround, I cloned the device, swapped the width/height in the clone and unchecked portrait. Then launched my avd based on the cloned landscape version. Maybe that could work for you?

Solution 8 - Android

I ran into the same issue when using the emulator running Android 5.0.1. However, I was able to resolve by using the emulator with Intel x86 Atom system image instead of the Intel x86 Atom_64 system image.

Solution 9 - Android

I have found a solution to this problem -

  • Create emulator with whatever setting you want but set the Target to be less then Android 4.4.

For example -

I set it to the following -->

enter image description here

NOTE:

Because I want to use Android 4.4 with Google Maps API so I used Android 4.2.2 with Google Maps API here.

  • After creating the AVD, start it and lets get it started completely.

  • Now come back to this AVD and edit it. Here you set the Target to Android 4.4 with Google Maps API.

For example -

I set it to the following -->

enter image description here

  • Now start the application and rotate any way you want. It worked great!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questiongreywolf82View Question on Stackoverflow
Solution 1 - AndroidCommonsWareView Answer on Stackoverflow
Solution 2 - AndroidVM4View Answer on Stackoverflow
Solution 3 - AndroidvldmrrrView Answer on Stackoverflow
Solution 4 - AndroidgenixproView Answer on Stackoverflow
Solution 5 - AndroidivanroveView Answer on Stackoverflow
Solution 6 - AndroididwebmediaView Answer on Stackoverflow
Solution 7 - AndroidrobiculousView Answer on Stackoverflow
Solution 8 - AndroidJulio FefermanView Answer on Stackoverflow
Solution 9 - AndroidMy GodView Answer on Stackoverflow