Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I simulate rotating the device with Android emulator?

I am running Android via the SDK emulator on Ubuntu. When you rotate some devices, they reset the layout to match (from portrait to landscape, or landscape to portrait). How can I simulate this on the emulator?

(Is this the same as simulating the accelerometer, for example with OpenIntents' SensorSimulator, or is there more to it?)

like image 779
Katherine Rix Avatar asked Aug 07 '12 12:08

Katherine Rix


People also ask

How do you rotate the screen on an emulator?

Use Ctrl + F11 . This will rotate your emulator.

How can I use my phone as simulation?

Run your app on the emulator After you have created an Android Virtual Device (AVD), you can start the Android Emulator and run an app in your project: In the toolbar, select the AVD that you want to run your app on from the target device drop-down menu. Click Run.

How do you emulate an Android phone?

In the Android SDK Manager, select Tools | Manage AVDs. In the Android Virtual Device Manager, click the New button to create a new virtual device. In the Create new Android Virtual Device (AVD) dialog box, select an Android device to emulate, and enter the details describing the Android device you want to emulate.


2 Answers

you can use KEYPAD_7, Ctrl-F11 ,KEYPAD_9 or Ctrl-F12 to move to the next orientation

like image 185
nandeesh Avatar answered Oct 07 '22 01:10

nandeesh


I think, what you need is:

Ctrl+F11

like image 28
waqaslam Avatar answered Oct 07 '22 01:10

waqaslam