Android Question Error Landscape when using CamEX2

tariqyounis

Member
Licensed User
Hello all;

I am getting the error if I want to use the camera in landscape mode.
AndroidManifest.xml:168: error: 'portrait,landscape' is incompatible with attribute screenOrientation (attr) enum [behind=3, fullSensor=10, fullUser=13, landscape=0, locked=14, nosensor=5, portrait=1, reverseLandscape=8, reversePortrait=9, sensor=4, sensorLandscape=6, sensorPortrait=7, unspecified=4294967295, user=2, userLandscape=11, userPortrait=12].
AndroidManifest.xml:184: error: 'portrait,landscape' is incompatible with attribute screenOrientation (attr) enum [behind=3, fullSensor=10, fullUser=13, landscape=0, locked=14, nosensor=5, portrait=1, reverseLandscape=8, reversePortrait=9, sensor=4, sensorLandscape=6, sensorPortrait=7, unspecified=4294967295, user=2, userLandscape=11, userPortrait=12].
error: failed processing manifest.
any advice?
 

DonManfred

Expert
Licensed User
Upvote 0

tariqyounis

Member
Licensed User
This is a sample b4a.
#SupportedOrientations: portrait, landscape <---- this will create the error.
#SupportedOrientations: portrait <---- this will work fine.
 

Attachments

  • Project.zip
    27 KB · Views: 17
Upvote 0

klaus

Expert
Licensed User
Your project is a B4XPages project. Therefore you can use only one orientation in B4A !
Look at the suggested possible orientations in the code:
'SupportedOrientations possible values: unspecified, landscape or portrait.
landscape or portrait.
This is a limitation with B4XPages projects in B4A.
Have a look at the B4XPages thread point 2 after Before we start.
2. It does have some limitations. One notable limitation is that in B4A, the activity that holds all the pages should be locked to a single orientation.
 
Upvote 1
Top