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
2010-09-03 04:35:27
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
2010-09-03 04:58:35
if you are on mac the try pressing Fn+Ctrl+F12.
bhups
2010-09-03 05:26:19
bhups, that is exactly what im looking for. THanks!
Sheehan Alam
2010-09-03 16:36:45