How do we change emulator screen orientation to landscape or portrait?
-
1http://stackoverflow.com/questions/2618967/switching-to-landscape-mode-in-android-emulator – DPP Aug 05 '13 at 01:49
-
1Left Ctrl + F11 on windows7 – Hana Bzh Jun 27 '15 at 14:50
-
Left Ctrl_F11 on Windows 8.1 too worked fine – bmnepali Oct 01 '15 at 07:51
28 Answers
Ctrl+F12 is the keyboard shortcut.

- 5,452
- 7
- 48
- 57

- 26,131
- 7
- 48
- 47
-
21See http://developer.android.com/guide/developing/tools/emulator.html#controlling – Mirko N. Jan 02 '10 at 13:59
-
20Numpad 7 is what I use, just make sure you have NumLock turned off so you're basically pressing the "Home" key on the Numpad. – Mark B Jan 04 '10 at 16:23
-
3Numpad 7 is nice, but if you're using a laptop, you're screwed, so this is the definite +1 – David Conde Jun 20 '11 at 11:49
-
on some linux distros the right Ctrl key may not functioning I use left Ctrl-F12 on archlinux – Ahmed Aswani Jan 15 '12 at 13:17
-
I thought this did not work for me and I kept searching and searching for other answers, but then I tried Ctrl-F12 again with the left Ctrl key instead of the right Ctrl key, and it worked! – Phil Aug 18 '12 at 03:04
-
31
-
It shows sideways, but doesn't rotate the inner screen, on Nexus One avd. – NoBugs Feb 23 '15 at 04:40
-
Android Emulator Shortcuts
Ctrl+F11 Switch layout orientation portrait/landscape backwards
Ctrl+F12 Switch layout orientation portrait/landscape forwards
1. Main Device Keys
Home Home Button
F2 Left Softkey / Menu / Settings button (or Page up)
Shift+f2 Right Softkey / Star button (or Page down)
Esc Back Button
F3 Call/ dial Button
F4 Hang up / end call button
F5 Search Button
2. Other Device Keys
Ctrl+F5 Volume up (or + on numeric keyboard with Num Lock off) Ctrl+F6 Volume down (or + on numeric keyboard with Num Lock off) F7 Power Button Ctrl+F3 Camera Button
Ctrl+F11 Switch layout orientation portrait/landscape backwards
Ctrl+F12 Switch layout orientation portrait/landscape forwards
F8 Toggle cell network
F9 Toggle code profiling
Alt+Enter Toggle fullscreen mode
F6 Toggle trackball mode

- 3,079
- 13
- 31
- 46

- 1,014
- 7
- 6
-
With only two modes changing forward and backwards comes out the same. Also as source one could cite http://developer.android.com/guide/developing/tools/emulator.html#controlling – NoDataDumpNoContribution Dec 28 '15 at 08:37
For those pesky Apple MacBook keyboard layouts that otherwise adjust the volume, use Ctrl + fn + F12.

- 30,738
- 21
- 105
- 131

- 1,232
- 10
- 17
Num 7 on keypad does it for me. Remember it works only when Num Lock is off.

- 7,443
- 12
- 45
- 59

- 223
- 2
- 7
Additionally, you must verify the autorotate setting on the emulator. Because of if this setting is off, you can't change the orientation besides press the rotate buttons. In the following picture, I will show how you can do this.

- 764
- 6
- 14
-
You just saved my life. I totally forgot about that. Thank you so much. – Vinícius Pacheco Vieira Jan 28 '20 at 14:30
-
On Ubuntu none of the keys (Ctrl+F11/F12 or numpad 7/numpad 9) worked for me. But I can rotate the emulator sending the keys with xdotool.
For example for a VM named "Galaxy_Nexus" I can rotate the emulator with:
xdotool search --name "Galaxy" key "ctrl_L+F11"

- 374
- 2
- 6
-
2Thanks. This worked in my case, without the L. xdotool search --name "Nexus" key "ctrl+F11" – Keeper Hood Feb 11 '14 at 15:55
-
All other methods failed on Linux Mint 17.3, this works. I also had to modify the key to "ctrl+F11" – JNissi Mar 07 '16 at 09:32
Ctrl + F11, numpad 7 and numpad 9 don't work on my Ubuntu box, but Ctrl + F12 does.

- 30,738
- 21
- 105
- 131

- 309
- 3
- 6
You no longer need to remember the shortcuts. The latest Android AVD interface contains a sidebar with various functional shortcuts. I've circled in blue the buttons that rotate the screen clockwise and counter-clockwise.

- 14,515
- 6
- 62
- 88
-
1Unfortunately, although this rotates the emulator depiction, it doesn't signal the applications to rotate. – Oscar Jul 17 '20 at 23:22
-
@Oscar I'm using Flutter's MediaQuery and my app rotates. There's a short lag but then the mode has changed. – Banana Dec 05 '21 at 10:51
-
@Oscar it is signaling but you need to swipe "a finger" from the top of the display and click on the enable rotation icon. I guess the emulator comes with Android system that has the icon disabled by default. Imagine how you would enable/disable rotation on your android phone. See the answer by martosfre above. – timmi4sa Apr 25 '22 at 16:13
Fn + 7 is a solution for keyboards where the num keypad is merged with the main keypad. Here the key with 7 (and &) is the key that has the blue-coloured 7.

- 481
- 1
- 6
- 15
Android Emulator Shortcuts
Ctrl+F11 Switch layout orientation portrait/landscape backwards
Ctrl+F12 Switch layout orientation portrait/landscape forwards
- Main Device Keys
Home Home Button
F2 Left Softkey / Menu / Settings button (or Page up)
Shift+F2 Right Softkey / Star button (or Page down)
Esc Back Button
F3 Call/ dial Button
F4 Hang up / end call button
F5 Search Button
- Other Device Keys
Ctrl+F5 Volume up (or + on numeric keyboard with Num Lock off) Ctrl+F6 Volume down (or + on numeric keyboard with Num Lock off) F7 Power Button Ctrl+F3 Camera Button
Ctrl+F11 Switch layout orientation portrait/landscape backwards
Ctrl+F12 Switch layout orientation portrait/landscape forwards
F8 Toggle cell network
F9 Toggle code profiling
Alt+Enter Toggle fullscreen mode
F6 Toggle trackball mode

- 5,811
- 5
- 39
- 58
On Android Studio 4.0.1, the emulator includes buttons for rotation.
In the image below, the Rotate Left (shortcut: Ctrl + Left) button is outlined in blue and the Rotate Right (shortcut: Ctrl + Right) button is outlined in red.
After pressing one of the buttons to rotate, the orientation of the application itself will not change. For instance, if we pressed Rotate Left, the application would look this:
To change the orientation of the running application, it is necessary to click the icon outlined in red above. Note that this icon may take a few seconds to show up and will disappear shortly. Also, when rotating back to portrait orientation, one must press the opposite rotate button for the icon to appear. This means that if we pressed Rotate Left, we need to press Rotate Right to return to the original orientation, and vice versa.

- 76,500
- 11
- 62
- 80
In my notebook, Dell Latitude E4310, the Ctrl+F12 keys do the job.

- 6,631
- 1
- 30
- 39

- 29
- 1
- 3
Use function + 9 for HP laptops. Others keys specified in previous answers didn't work for me.

- 30,738
- 21
- 105
- 131

- 1,827
- 4
- 32
- 67
My virtual device could not be rotated. Go to the device list, click settings and change the predefined resolution.

- 1,179
- 1
- 14
- 26
All of the above methods didn't work for me. Using Left Ctrl + <Windows Key> + F11 worked on Linux Mint 17.

- 30,738
- 21
- 105
- 131

- 33
- 8
In the updated emulator you don't have to remember the keyboard shortcuts -- they have added a side panel to the right side of the window. You can change the screen orientation by clicking either of the "rotate" buttons in that side panel.
Just click on Rotate button to change the landscape to portrait and vice versa.

- 23,288
- 5
- 44
- 48
-
Unfortunately, although this rotates the emulator depiction, it doesn't signal the applications to rotate. Bizarre. – Oscar Jul 17 '20 at 23:20
On Mac to see the help: ⌘/
then you will see Keyboard shortcuts.
Rotate right: ⌘→
, Rotate left: ⌘←

- 865
- 11
- 12