ScreenOrientation to fullsensor got error in manifest

I am trying to work on a project that will work in 4 directions. I set it on AndroidManifest.xml

android:screenOrientation="sensor"

, it works, but it only has 3 orientations. So I set it to android:screenOrientation="fullSensor"

for 4 orientations. Sorry i got this error

error: Error: String types not allowed (at 'screenOrientation' with value 
 'fullSensor').

      

Does anyone know how to make this work?

+3


source to share


2 answers


fullSensor is only supported from API level 9.

The orientation is determined by the device orientation sensor for any of the 4 orientations. This is similar to "sensor" except this allows any of the 4 possible screen orientations, regardless of what the device will normally do (for example, some devices won't normally use reverse portrait or reverse landscape, but this enables those). Added in API level 9.

      



Please refer to http://developer.android.com/guide/topics/manifest/activity-element.html .

+1


source


What API level are you using?



fullSensor added to API level 9. Test it once

+1


source







All Articles