Screen orientation

Monkey Targets Forums/Android/Screen orientation

Arabia(Posted 2013) [#1]
Just been searching for this, and found that I can use:

#ANROID_SCREEN_ORIENTATION="landscape" and this works fine, it won't allow my screen to go into portrait which is what I want, but it also completely locks it - i.e. I can't turn the screen 180 degree's and use it upside down which preferably I'd like the user to be able to do.

Any hints?


Ironstorm(Posted 2013) [#2]
Jep.

#ANDROID_SCREEN_ORIENTATION="sensorLandscape"


"sensorLandscape" was added in API level 9 (Android 2.3).
For more possible screen orientation settings just read the API documentation.


Arabia(Posted 2013) [#3]
Ah, thank you very much.

I did try looking in the monkey docs for #ANDROID_ etc. and found nothing, I did Google it, but didn't take the time to search through everything.

Thanks for the link.