Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Admob with Android: unable to parse android:configChanges in manifest

Tags:

android

admob

I am trying to add ads to my Android app using Admob, but have hit a brick wall. Admob says it requires the following from logcat

E/Ads     (26043): The android:configChanges value of the com.google.ads.AdActivity must include uiMode.
E/Ads     (26043): The android:configChanges value of the com.google.ads.AdActivity must include screenSize.
E/Ads     (26043): The android:configChanges value of the com.google.ads.AdActivity must include smallestScreenSize.

However, the Android SDK in Eclipse on Ubuntu fails to be able to parse the following,

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

When I go to the activity and select the attribute in the manifest, the last three items show 'Unrecognized flag'.

I want to add ads in on Android 1.6 (API level 4), but these attributes don't exist until API levels in the teens. How do I reconcile this?

like image 948
ilektron Avatar asked Oct 25 '11 07:10

ilektron


1 Answers

The AdMob SDK v4.3.1 was released late last night. The SDK requires these new configChanges for tablet optimization, but these configChanges are only available in Honeycomb and above.

You will need to download Android SDK Version 3.2 or above, and then set target=13 or above in your project.properties file to compile against the new SDK version. It will still support Android 1.5 devices and above, and that can be controlled by the minSdkVersion in your manifest.

like image 182
Eric Leichtenschlag Avatar answered Oct 23 '22 04:10

Eric Leichtenschlag