1053

How can I rotate the Android emulator display to see it in landscape mode?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
mahdi
  • 16,257
  • 15
  • 52
  • 73
  • 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 Answers23

1200

Windows: left Ctrl + F12

Mac: Fn + Ctrl + F12

Arsen Khachaturyan
  • 7,904
  • 4
  • 42
  • 42
ccheneson
  • 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
    Might be stupid but how to return this back to normal?! – Dumbo May 08 '12 at 20:20
  • 1
    For 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
    Fn + Ctrl + F12, I really don't get why this get so many votes – ericn Apr 15 '13 at 01:10
  • 13
    For 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
  • 7
    Well, 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
  • 1
    These 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
    left Ctrl+F11 seems to work too. – JohnyTex Feb 05 '15 at 09:57
  • Tryied it under Ubuntu 14.04 LTS, works perfectly. – Gui Imamura Apr 06 '15 at 10:53
  • 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
  • Its now CMD + <- or CMD + -> for Mac – boylec1986 Mar 06 '20 at 16:00
  • If none of these work, just cold boot it – Tosh Dec 04 '21 at 18:47
361
  • Linux: CTRL + F12
  • Mac: Fn + CTRL + F12
  • Windows: Left CTRL + F11 or Left CTRL + F12
ismail
  • 46,010
  • 9
  • 86
  • 95
52

Turn off NUMLOCK and press NUMPAD 9 to rotate the emulator.

Yatharth Agarwal
  • 4,385
  • 2
  • 24
  • 53
  • 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
40

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
xtr
  • 5,870
  • 1
  • 21
  • 23
37

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.

Oscar Salguero
  • 10,275
  • 5
  • 49
  • 48
26

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

Sandesh
  • 1,190
  • 3
  • 23
  • 41
ssdscott
  • 683
  • 6
  • 12
  • 1
    Ah, 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
  • 1
    IMHO 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
22

Use NUMPAD 7 and NUMPAD 9. It will help you.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
XYZ_deve
  • 475
  • 5
  • 6
16

NUMPAD 7 and NUMPAD 9 work fine for me.

Yatharth Agarwal
  • 4,385
  • 2
  • 24
  • 53
Magnetic_dud
  • 1,506
  • 2
  • 22
  • 36
  • 2
    But 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
6

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:

AVD Manager

Then, under Startup size and orientation, select Landscape:

Configure AVD

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

Community
  • 1
  • 1
CJBS
  • 15,147
  • 6
  • 86
  • 135
5

For Mac you can use fn + Left control + F12.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Babar Sanah
  • 533
  • 1
  • 7
  • 13
5

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;
Yatharth Agarwal
  • 4,385
  • 2
  • 24
  • 53
iwasrobbed
  • 46,496
  • 21
  • 150
  • 195
4

Left Ctrl + F11 works on Windows.

Yatharth Agarwal
  • 4,385
  • 2
  • 24
  • 53
4

Press Left Ctrl + F11 or Left Ctrl + F12 to rotate the emulator view.

Note: Right Ctrl doesn't work;

Yatharth Agarwal
  • 4,385
  • 2
  • 24
  • 53
2

Use Ctrl + F11. This will rotate your emulator.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Mahesh
  • 2,862
  • 2
  • 31
  • 41
2

For rotating the emulator, press CTRL + F12.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Brajendra Pandey
  • 2,280
  • 1
  • 16
  • 22
1

For Linux the F12 combination does not work. Instead, use:

Left Ctrl + F11

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Nick
  • 9,962
  • 4
  • 42
  • 80
1

You can use Numpad-9 and Numpad-7 to rotate on Windows and Ubuntu.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Metalhead1247
  • 1,978
  • 1
  • 17
  • 28
0

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
bsautner
  • 4,479
  • 1
  • 36
  • 50
0

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Akanksha Rathore
  • 3,603
  • 3
  • 31
  • 47
0

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)

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Marouane Gazanayi
  • 5,063
  • 6
  • 39
  • 58
0

On my DELL XPS ultrabook with Linux Mint 15, none of suggested methods work, until an external keyboard is plugged in and use left CTRL + NUMPAD 9.

Mwiza
  • 7,780
  • 3
  • 46
  • 42
tyolab
  • 377
  • 3
  • 11
-1

Press Ctrl + F10 to rotate the emulator screen.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
user2240776
  • 25
  • 1
  • 4
-6

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.

Mohan Pednekar
  • 174
  • 3
  • 13