Other Manifest Editor errors

DevBaby

Active Member
Licensed User
Longtime User
I am using facebook's sdk that requires the following to be added to

Issue 1

B4X:
<activity android:name="com.facebook.FacebookActivity"
          android:configChanges=
                 "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
          android:theme="@android:style/Theme.Translucent.NoTitleBar"
          android:label="@string/app_name" />

I added the following the manifest editor

B4X:
AddApplicationText(
<activity android:name="com.facebook.FacebookActivity"
         android:configChanges=
                "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
         android:theme="@android:style/Theme.Translucent.NoTitleBar"
         android:label="@string/app_name" />)


Below is the error I get during compiling...I am not sure what app_name the label is suppose to be...



Parsing code. 0.20
Compiling code. 0.16
Compiling layouts code. 0.01
Generating R file. Error
AndroidManifest.xml:33: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|screenLayout|screenSize|orientation').
AndroidManifest.xml:33: error: Error: No resource found that matches the given name (at 'label' with value '@string/app_name').

Issue 2

Facebook sdk requires the following..


B4X:
<application android:label="@string/app_name" ...>
    ...
    <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
    ...
</application>


I added...

B4X:
AddManifestText(
<application android:label="@string/app_name">
    <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
</application>)



Below is the error

AndroidManifest.xml:14: error: Error: No resource found that matches the given name (at 'label' with value '@string/app_name').
AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'value' with value '@string/facebook_app_id').

but the compiler seems to delete every strings.xml (containing the value for facebook_app_id) file that I put in the objects\res\value directory for for my app.
 
Top