How can I rotate the Android emulator display to see it in landscape mode?
-
Things have changed quite a bit since this was asked, please see [this page](https://developer.android.com/studio/run/emulator.html#tasks) – Ryan Haining Feb 02 '17 at 22:55
23 Answers
Windows: left Ctrl + F12
Mac: Fn + Ctrl + F12

- 7,904
- 4
- 42
- 42

- 49,072
- 8
- 63
- 68
-
4@Omar : According to the comment of the tutorial http://androidandme.com/2009/10/news/how-to-install-android-sdk-and-play-with-android-2-0-in-the-emulator/ , you can rotate on Mac with Shift + F12 – ccheneson Mar 02 '12 at 12:47
-
3
-
1For those wanting to figure out how to rotate again, you cannot simply keep holding control and then push F11 or F12. You must release control from the prior key push prior to pushing Control F11 or F12 again. – Brad Jun 23 '12 at 23:53
-
54
-
13For Kubuntu users, `Ctrl+F12` activates the Widget Dashboard. You will need to make sure `NUMLOCK` is off and press the `7` number key instead. – Nathan Osman May 14 '13 at 19:48
-
7Well, this rotates the picture, but the android running in the VM does not detect the rotation an so everything is sideways. :/ – panzi Jul 25 '14 at 15:37
-
1These keystrokes just rotate what's shown (which is initially on its side for some bizarre reason)... but don't change the display aspect between landscape and portrait as when you rotate the phone. I found choosing a QVGA rather than HVGA device makes the emulation come the right way up. – Ed Randall Aug 18 '14 at 15:28
-
2
-
-
1@panzi In my case the app wasn't rotating because I forgot to enable the Auto-Rotate feature from android settings – gianlucaparadise Jul 23 '19 at 13:22
-
-
- Linux: CTRL + F12
- Mac: Fn + CTRL + F12
- Windows: Left CTRL + F11 or Left CTRL + F12

- 46,010
- 9
- 86
- 95
-
-
as mentioned by @ccheneson only left CTRL + F11 OR left CTRL F12 works for windows – Mohit Mehta Jun 15 '13 at 06:48
-
2
-
1
-
-
-
Turn off NUMLOCK
and press NUMPAD 9 to rotate the emulator.

- 4,385
- 2
- 24
- 53

- 732
- 7
- 13
-
For me, I did not have to turn the number pad off. But, I did have to wait into the emulator was fully booted up before it started working. – Richard Aug 17 '13 at 12:20
As far as I know, F11 or F12 doesn't work, and nor does Right Ctrl + F12.
Hit Left Ctrl + F12, or Home, or PageUp, (not NUMPAD 7 or NUMPAD 9 like the website says) to rotate the emulator.

- 30,738
- 21
- 105
- 131

- 5,870
- 1
- 21
- 23
On Mac OS X, you can use Ctrl + Fn + F12 to rotate the Android emulator if you have have not configured your keyboard to "Use all F1, F2, etc. keys as standard function keys" (Check it on System Preferences - Keyboard).
If you have checked the option mentioned above, you will not need the Fn key and you should be able to rotate the emulator only with Ctrl + F12.

- 10,275
- 5
- 49
- 48
If you're on a Mac, fn+F11 will rotate the emulator.
But if you're using 4.4, that won't rotate the application orientation. There's a bug
-
1Ah, thanks for mentioning the bug on the 4.4 emulator - it had me thinking my code was buggy. – wattostudios Mar 15 '14 at 09:19
-
1IMHO the mention about the 4.4 bug should should be in the main answer. This is top result in google, but it didnt answer me before i dug deeper in other answers and this one in particular! – Edgar Zagórski Nov 19 '14 at 13:59
NUMPAD 7 and NUMPAD 9 work fine for me.

- 4,385
- 2
- 24
- 53

- 1,506
- 2
- 22
- 36
-
2But not 8. And only if NumLock is off. Who's the clever twit at Google that decided to recognize numpad 7 (but not the 7 or Home keys) and numpad 9 (but not the 9 or PgUp keys), only if NumLock is off?! – Qwertie Apr 18 '12 at 00:01
-
On my computer with Numlock on, 9 both sends a "9" to the current program *and* rotates the emulator screen... ! – MZB Dec 10 '14 at 23:49
Device Start-up Configuration -- Via the GUI
To start-up the device in Landscape mode, modifications be made in the Android Virtual Device (AVD) Manager. Open the Virtual Device Manager, and click the Edit pencil:
Then, under Startup size and orientation, select Landscape:
.. and click Finish.
Device Start-up Configuration -- Via the config file
Despite the seemingly easy way to configure this, in practice this didn't work for me. So there's a way to edit the device's configuration file instead to force it to start-up in Landscape mode.
It involves manually switching the width and height in the hardware-qemui.ini
file.
To do so, open this file for edit in a text editor:
C:\Users\<user>\.android\avd\<deviceName>.avd\hardware-qemu.ini
Switch the values of the width and height, so that the width is longer than the height:
hw.lcd.width = 800
hw.lcd.height = 480
The AVD now boots in Landscape mode. The orientation may still be changed with shortcut keys.
For Mac you can use fn + Left control + F12.

- 30,738
- 21
- 105
- 131

- 533
- 1
- 7
- 13
-
For Mac: This didn't work for me, I used the Num Pad - 7 and Num Pad 9 which worked – GraSim May 07 '15 at 17:46
Ctrl + F12 did not work for me, nor did Home, PageUp etc.
So here's what finally came up with:
- Enable
NUMLOCK
; - Open your emulator and press the 7 followed by 9 on the NUMPAD on the right side of your keyboard;
- Now your emulator will be rotated in the opposite direction;

- 4,385
- 2
- 24
- 53

- 46,496
- 21
- 150
- 195
Press Left Ctrl + F11 or Left Ctrl + F12 to rotate the emulator view.
Note: Right Ctrl doesn't work;

- 4,385
- 2
- 24
- 53

- 41
- 3
Use Ctrl + F11. This will rotate your emulator.

- 30,738
- 21
- 105
- 131

- 2,862
- 2
- 31
- 41
For rotating the emulator, press CTRL + F12.

- 30,738
- 21
- 105
- 131

- 2,280
- 1
- 16
- 22
For Linux the F12 combination does not work. Instead, use:
Left Ctrl + F11

- 30,738
- 21
- 105
- 131

- 9,962
- 4
- 42
- 80
You can use Numpad-9 and Numpad-7 to rotate on Windows and Ubuntu.

- 30,738
- 21
- 105
- 131

- 1,978
- 1
- 17
- 28
Ubuntu 12.10 (Quantal Quetzal): [LEFT Ctrl] + F12.
For some reason NumLock isn't working on a new install on a Dell XPS 8500, but the above worked.

- 30,738
- 21
- 105
- 131

- 4,479
- 1
- 36
- 50
I have checked on Windows: Ctrl + F11 and Ctrl + F12 both are working to change the orientation of the Android simulator.
For other shortcut keys:
In the Eclipse toolbar go to "Help-->key Assist.. "
You can also use Ctrl + Shift + L here, so many shortcut keys of Eclipse are given.

- 30,738
- 21
- 105
- 131

- 3,603
- 3
- 31
- 47
On Mac: Fn+Left Ctrl+F12
On Linux: Left Ctrl+F12
If you want to rotate just the screen and not the emulator: Ctrl+F10 (I tried it on Linux)

- 30,738
- 21
- 105
- 131

- 5,063
- 6
- 39
- 58
Press Ctrl + F10 to rotate the emulator screen.

- 30,738
- 21
- 105
- 131

- 25
- 1
- 4
Make sure that "Auto Rotate" on your Android settings is enabled
Press F9 two times in less than 2 seconds = Normal view 0/360º
Press F10 two times in less than 2 seconds = Rotate 180º.
Press F11 two times in less than 2 seconds = Rotate 90º to the RiGHT.
Press F12 two times in less than 2 seconds = Rotate 90º to the LEFT.

- 174
- 3
- 13