Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching to landscape mode in Android Emulator

This is probably a pretty easy to answer question, but I can't find the solution myself after a couple hours of searching the documentation and Google. I set the orientation of my Android app to landscape in the AndroidManifest.xml file:

android:screenOrientation="landscape" 

However, when I run the app in the simulator, it appears sideways and in portrait mode. How can I switch the emulator to landscape mode on a mac? It's running the 1.6 SDK.

like image 257
codeman Avatar asked Apr 11 '10 22:04

codeman


People also ask

How do you rotate the screen on an emulator?

Use Ctrl + F11 . This will rotate your emulator.

How do I force an app to run in landscape android?

On the main screen of Rotation Manager, select an orientation by tapping on either the vertical or horizontal icons next to a specific app to lock it into either landscape or portrait mode. Highlighting both icons will allow that particular app to auto-rotate.


1 Answers

Try:

  • ctrl+fn+F11 on Mac to change the landscape to portrait and vice versa.
  • left-ctrl+F11on Windows 7.
  • ctrl+F11on Linux.

For Mac users, you only need to use the fn key if the setting "Use all F1, F2 etc. keys as function keys" (under System Preferences -> Keyboard) is checked.

  • left-ctrl+F11on Windows 7 It works fine in Windows 7 for android emulator to change the landscape orientation to portrait and vice versa.
like image 117
8 revs, 7 users 26% Avatar answered Oct 09 '22 06:10

8 revs, 7 users 26%