tags:

views:

82

answers:

2

How can I simulate landscape orientation in the android simulator?

+2  A: 

what do you mean by Horizontal simulation? If you are talking about activity orientation then either you can define that in AndroidManifest xml file like this:

<activity ....
android:screenOrientation="landscape"/>
Or if you want to do in the code then you can request orientation on your activity object:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

bhups
yes, but when i am testing in the simulator, is there any way to turn my virtual device to landscape so I can test it properly?
Sheehan Alam
if you are on mac the try pressing Fn+Ctrl+F12.
bhups
bhups, that is exactly what im looking for. THanks!
Sheehan Alam
+4  A: 

Try hitting ctrl+F12 :)

onik