1

Recently I upgraded the Android Studio from 1.5.x to 2.0 stable version.

Before the upgrade I was changing the screen orientation with the Ctrl + F12 or Ctrl + F11 keyboard shortcut but now it doesn't work in the 2.0 version. I also tried Numpad 7 and Numpad 9 (with the numpad on or off) but without success.

Yes, I'm aware that the new Android AVD interface contains a sidebar with various functional shortcuts which includes Rotate left (Ctrl + Left) and Rotate right (Ctrl + Right) icons but it rotate only the the device not the mode (Landscape or Portrait) as it showed in the image below:

Rotate right

How can I change emulator screen orientation to landscape or portrait in the new Android Studio 2.0?

P.S. Please do not mark my question as duplicate, I tried all the solutions from How do I change screen orientation in the Android emulator? and How to rotate the Android emulator display? as those questions were valid for earlier versions of Android Studio.

P.P.S. I'm using Ubuntu 14.04 operating system on a Samsung R530 notebook.

Community
  • 1
  • 1
Andritchi Alexei
  • 1,380
  • 1
  • 16
  • 23

3 Answers3

2

It seems to be a bug. Please check out https://code.google.com/p/android/issues/detail?id=206262 and report the observed behavior.

Edit: Fixed in SDK Tools 25.1.6

Bambino
  • 405
  • 4
  • 15
1

This is not a real solution, but if anything don't work, it's good workaround. Just add screenOrientation property to activity in the Manifest file.

 <activity
    android:name=".MainActivity"           
    android:screenOrientation="landscape"
 />
Ben12345
  • 11
  • 2
0

After upgrading my operating system from Ubuntu 14.04 to Ubuntu 16.04 the bug disappeared and the Rotate left (Ctrl + Left) and Rotate right (Ctrl Right) works fine.

Andritchi Alexei
  • 1,380
  • 1
  • 16
  • 23