AdMob error massage HELP !!!

ilan

Expert
Licensed User
Longtime User
hi

i try to add ADMOB to my app, i followed the instruction and i get an error massage:

B4X:
Compiling code.                         0.75
Compiling layouts code.                 0.05
Generating R file.                      Error
AndroidManifest.xml:20: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').

something in the menifest editor is wrong

this is how it looks like in my mnifst editor:

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetActivityAttribute(memory, android:screenOrientation, "landscape")
'Admob
AddApplicationText(
 <activity android:name="com.google.ads.AdActivity"
  android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)
'End of default text.


but am i doing wrong?

thanx
 

cb56

Member
Licensed User
Longtime User
Try this on a single line:

B4X:
AddApplicationText(<activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>)

cb56
 
Upvote 0
Top