Documente Academic
Documente Profesional
Documente Cultură
[duplicate]
up
126
vote
own vote
I am new to Android development.
22
favorite
I know if you change a android phone from portrait to landscape sometimes the app relays its
self out on the screen.. so how do I simulate rotating a phone with the AVD? On the
Blackberry emulators there's a button in the menu to turn the phone, but I can't find it or any
option on the Android ones?
What am I missing?
android avd
Jonas
24.3k57170270
Bex
2,10642357
3 Answers
activeoldest votes
up
See the Android documentation on controlling the emulator; it's Ctrl + F11 / Ctrl + F12 .
205
vote
d share|improve this answer
own vote
answered
Darshana
1,42631334
Yoni Samlan
23.1k44050
accept ed
2
9
It rotates, but if you design a view to work on both portrait and landscape, the app wont be rotated, only the
windows, so its like you rotate your phone 90 degrees but the app keeps in portrait mode. Mateus Viccari
'14 at 17:06
@MateusViccari That's a bug in the Android 4.4 emulator image. Seestackoverflow.com/questions/19726285/
Other emulator images should work fine. Yoni Samlan May 27 '14 at 21:14
add a comment
up
Officially it's Ctrl + F11 & Ctrl + F12 or KEYPAD 7 & KEYPAD 9 .
do In practise it's a bit quirky.
79
vote
wn vote
1.
Specifically it's Left Ctrl + F11 and Left Ctrl + F12 to switch to previous orientation and
next orientation respectively.
2.
You have to release Ctrl before you can rotate again.
3.
KEYPAD 7 and KEYPAD 9 only work with Num Lock OFF (so they're acting
as Home & PageUp rather than 7 & 9 ).
4.
The only orientations are vertically upright and rotated one quarter-turn anti-clockwise.
Maybe a bit too much info for such a simple question, but it drove me half-mad finding this out.
Note: This was tested on Android SDK R16 and a very old keyboard, modern keyboards may
behave differently.
share|improve this answer
answered
Qtax
21.2k32868
Andrew Martin
1,096511
Again thank you for your answer, but this question was asked (and resolved) in 2010 ! Bex Mar 9 '12 at 8:56
@Bex I just had some frustration to vent (thanks to the quirks listed), so I channelled it into a post.
4 Martin Mar 13 '12 at 11:18
@Bex: Yes, and Andrew added some great details that weren't in the original answer of just a link. Stack Overflow
about creating useful and lasting artifacts on the Internet, so thanks to Andrew for improving the internet!
8 McKeeth Jun 17 '12 at 2:17
This is still the same. This should be the accepted answer! I don't get why it's so quirky. I was pressing the rightCtrl and it didn't work at all! Normally, applications shouldn't distinguish between the two control keys - that kind o
distinguishing is reserved for video games and specialized applications! And having to release the Ctrl key is just
3 ridiculous. ADTC Jul 27 '13 at 5:29
Numpad => It works for me only with Num Lock set to ON. If it's off does not work for me. For the rest, answer
1 should be the accepted one. Xavi Montero Nov 17 '14 at 0:40
show 2 more comments
up
29
Yes. Thanks
vote
do
Ctrl + F11 for Portrait
wn vote
and
Ctrl
answered
Darren Davies
30.1k83672
Anshuman
29132
1 Thanks for your answer but this question was resolved about a year ago! Bex Sep 28 '11 at 8:16
@Bex: Yes, but it is always nice to have more information added to the answer. Anshuman is more clean in saying
2 which keys for which orientation, which Yoni didn't mention. Jim McKeeth Jun 17 '12 at 2:15
+1 for using <kbd? IanNorton Sep 9 '12 at 7:23
add a comment
Not the answer you're looking for? Browse other questions tagged
android avd orask your own question.