Android: screenOrientation = "sensorPortrait" is not valid?

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

+8
android eclipse android-orientation
source share
1 answer

Google made a typo, use sensorPortait

+16
source share

All Articles