How do I change screen orientation in the Android emulator?
Asked Answered
M

28

361

How do we change emulator screen orientation to landscape or portrait?

Morbific answered 2/1, 2010 at 11:24 Comment(3)
#2619467Arlynearlynne
Left Ctrl + F11 on windows7Kallman
Left Ctrl_F11 on Windows 8.1 too worked fineOverstuffed
G
463

Ctrl+F12 is the keyboard shortcut.

Garlan answered 2/1, 2010 at 11:59 Comment(8)
See developer.android.com/guide/developing/tools/…Motto
Numpad 7 is what I use, just make sure you have NumLock turned off so you're basically pressing the "Home" key on the Numpad.Manton
Numpad 7 is nice, but if you're using a laptop, you're screwed, so this is the definite +1Bedfordshire
on some linux distros the right Ctrl key may not functioning I use left Ctrl-F12 on archlinuxAcquiescent
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!Willawillabella
On Mac it's CTRL + FN + F11Nyeman
It shows sideways, but doesn't rotate the inner screen, on Nexus One avd.Displant
turn on your auto rotate of emulatorFading
E
84

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

Exocrine answered 18/6, 2013 at 5:43 Comment(1)
With only two modes changing forward and backwards comes out the same. Also as source one could cite developer.android.com/guide/developing/tools/…Corin
P
40

For those pesky Apple MacBook keyboard layouts that otherwise adjust the volume, use Ctrl + fn + F12.

Penthea answered 6/5, 2011 at 4:29 Comment(0)
T
18

Num 7 on keypad does it for me. Remember it works only when Num Lock is off.

Ti answered 20/6, 2011 at 9:48 Comment(0)
B
17

ctrl+fn+F11 on Mac to change the landscape to portrait and vice versa.

left-ctrl+F11on Windows 7.

ctrl+F11on Linux.

Bankruptcy answered 6/2, 2013 at 5:24 Comment(0)
G
16

Ctrl + F11 and Ctrl + F12 both work.

Godliman answered 24/11, 2010 at 3:15 Comment(0)
S
14

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.

Activate Autorotate Setting

Subcelestial answered 19/3, 2019 at 19:11 Comment(2)
You just saved my life. I totally forgot about that. Thank you so much.Platte
I'm happy can help you, greetings ViniciusSubcelestial
G
11

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"
Glitter answered 2/4, 2013 at 7:43 Comment(2)
Thanks. This worked in my case, without the L. xdotool search --name "Nexus" key "ctrl+F11"Leggy
All other methods failed on Linux Mint 17.3, this works. I also had to modify the key to "ctrl+F11"Intrude
B
7

Ctrl + F11, numpad 7 and numpad 9 don't work on my Ubuntu box, but Ctrl + F12 does.

Blacken answered 4/1, 2011 at 8:45 Comment(0)
S
7

For Mac, use:

Ctrl + FN + F11

​​​​

Spectator answered 23/7, 2012 at 18:25 Comment(0)
R
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.

enter image description here

Razo answered 22/3, 2016 at 17:37 Comment(3)
Unfortunately, although this rotates the emulator depiction, it doesn't signal the applications to rotate.Tungus
@Tungus I'm using Flutter's MediaQuery and my app rotates. There's a short lag but then the mode has changed.Fallfish
@Tungus 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.Diligent
B
4

Ubuntu Release 12.04 (precise) 64-bit
DELL Latitude E6320

CTRL + (double tap on F12)

Backcourt answered 26/10, 2012 at 21:6 Comment(0)
L
3

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.

Livre answered 10/6, 2013 at 16:12 Comment(0)
W
3

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

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

Woo answered 2/6, 2015 at 6:8 Comment(0)
J
3

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.

Android Emulator

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:

Android Emulator Rotated Left

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.

Android Emulator Landscape

Jeanene answered 13/8, 2020 at 0:42 Comment(0)
B
2

In my notebook, Dell Latitude E4310, the Ctrl+F12 keys do the job.

Becket answered 15/6, 2012 at 14:16 Comment(0)
H
2

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

Heywood answered 19/7, 2012 at 6:51 Comment(0)
M
2

My virtual device could not be rotated. Go to the device list, click settings and change the predefined resolution.

Myatt answered 6/5, 2015 at 11:4 Comment(0)
S
1

Left Ctrl+F12 = For Windows 8

Sammiesammons answered 1/4, 2014 at 10:27 Comment(0)
I
1

To do this on the Surface

Ctrl+Fn+F12

Intranuclear answered 28/4, 2015 at 2:58 Comment(0)
B
1

With Android Studio:

Windows: Ctrl+Left-Arrow and Ctrl+Right-Arrow

Bobbery answered 8/8, 2016 at 17:49 Comment(0)
F
0

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

Figured answered 9/10, 2014 at 13:58 Comment(0)
R
0

Super->Ctrl_L->F12 works for me on Fedora 23

Robles answered 19/11, 2015 at 22:4 Comment(0)
T
0

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.

enter image description here

Just click on Rotate button to change the landscape to portrait and vice versa.

Teraterai answered 6/5, 2016 at 4:49 Comment(1)
Unfortunately, although this rotates the emulator depiction, it doesn't signal the applications to rotate. Bizarre.Tungus
S
0

On Mac to see the help: ⌘/ then you will see Keyboard shortcuts.

Rotate right: ⌘→ , Rotate left: ⌘←

Superabundant answered 11/7, 2019 at 15:3 Comment(0)
V
0

For Linux use: Right_Ctrl + left_Arrow or Right_Ctrl + right_Arrow.

Vietcong answered 9/9, 2022 at 5:51 Comment(0)
C
0
  1. Make sure Auto-rotate is ON

1

  1. Rotate Right/Left.

2

Carpometacarpus answered 13/11, 2022 at 13:2 Comment(0)
M
-2

Ctrl+Left

See documentation here: https://developer.android.com/studio/run/emulator.html#tasks

enter image description here

Markup answered 17/1, 2018 at 16:25 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.