Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I emulate changing the orientation of my android device?

I'm working in Eclipse using the Android SDK and Android ADT plugin, and I have some functionality based on phone orientation that I want to test in the emulator (more specifially, I want to verify my solution to this problem).

How do I emulate the orientation change?

like image 350
Tomas Aschan Avatar asked Nov 29 '11 15:11

Tomas Aschan


People also ask

How do I change the orientation of my emulator?

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.


1 Answers

If you mean,switching during runtime,than:

.Switch to previous layout orientation (for example, portrait, landscape): KEYPAD_7, Ctrl-F11 .Switch to next layout orientation (for example, portrait, landscape): KEYPAD_9, Ctrl-F12

Is that what you need?

like image 98
Marcello Grechi Lins Avatar answered Sep 25 '22 01:09

Marcello Grechi Lins