D DevBaby Active Member Licensed User Longtime User Mar 12, 2016 #1 I am using facebook's sdk that requires the following to be added to Issue 1 Code: <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 Code: 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.. Code: <application android:label="@string/app_name" ...> ... <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/> ... </application> I added... Code: 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.
I am using facebook's sdk that requires the following to be added to Issue 1 Code: <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 Code: 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.. Code: <application android:label="@string/app_name" ...> ... <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/> ... </application> I added... Code: 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.
ivan.tellez Active Member Licensed User Longtime User Mar 12, 2016 #2 DevBaby said: but the compiler seems to delete every strings.xml Click to expand... That's actually the most basic behavior regarding the manifest. (use read only files) But now, the correct way is to use the command CreateResource Last edited: Mar 14, 2016 Upvote 0
DevBaby said: but the compiler seems to delete every strings.xml Click to expand... That's actually the most basic behavior regarding the manifest. (use read only files) But now, the correct way is to use the command CreateResource
D DevBaby Active Member Licensed User Longtime User Mar 13, 2016 #3 ivan.tellez said: That's actually the most basic behavior regarding the manifest. (not read only files) But the correct way is to use the command CreateResource Click to expand... Thanks for your reply. Upvote 0
ivan.tellez said: That's actually the most basic behavior regarding the manifest. (not read only files) But the correct way is to use the command CreateResource Click to expand... Thanks for your reply.