Android Question B4A 5.5 reports error screenorientation locked

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
I am testing B4A 5.5 by compiling apps that I have developed with B4A 4.30.

With 5.5 I get the error:

B4X:
B4A version: 5.50
Parsing code.    (0.04s)
Running custom action.    (0.06s)
Running custom action.    (0.04s)
Compiling code.    (0.04s)
Compiling layouts code.    (0.00s)
Generating R file.    Error
AndroidManifest.xml:42: error: Error: String types not allowed (at 'screenOrientation' with value 'locked').

This compiles with 4.30.

The offending manifest entry is from Appodeal for their ads server

B4X:
  <activity android:name="com.chartboost.sdk.CBImpressionActivity"
            android:theme="@android:style/Theme.Translucent"  android:screenOrientation="locked"
            android:excludeFromRecents="true" />

The Android docs seem to say this is OK:
http://developer.android.com/guide/topics/manifest/activity-element.html

B4X:
          android:screenOrientation=["unspecified" | "behind" |
                                     "landscape" | "portrait" |
                                     "reverseLandscape" | "reversePortrait" |
                                     "sensorLandscape" | "sensorPortrait" |
                                     "userLandscape" | "userPortrait" |
                                     "sensor" | "fullSensor" | "nosensor" |
                                     "user" | "fullUser" | "locked"]

Is this what the B4A error messege is pointing to?

Barry.
 
Top