I need to limit my application to display in portrait mode.
Using android: screenOrientation = "Portrait" works fine, but I would like a change of display to change the portrait when the device is rotated.
Using android: screenOrientation = "sensorPortrait" leads to a compilation error. The funny thing is, if I use "sensorLandscape" instead, it compiles fine, but thatβs not what I need.
I am using Eclipse v 3.7.2 with Android 2.3.3
Any ideas ???
Thanks Rob
android eclipse android-orientation
Rob 'user1478730'
source share