0

Possible Duplicate:
Admob implementation Error

Foe AdMob, I am using GoogleAdmobAdsSdk-4.3.1.jar file. I am getting below error in the ads area of my HTC device "You must have AdActivity declared in AndroidManifest.xml with configChanges."

But I have added this configChanges in AndroidManifest file as:

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

So what is wrong?

Community
  • 1
  • 1
Subrat
  • 3,928
  • 6
  • 39
  • 48

1 Answers1

1

If you're using 4.3.1, your activity would probably need have some extra items under configChanges as below:

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

Also, if you do this and you don't have the target set in your project.properties file (probably need to set target=android-13 or higher assuming you have an Android SDK of 3.2 or higher).

Found this info in a blog post here.

RajPara
  • 2,281
  • 1
  • 16
  • 9
  • Thanks @RajPara. I have updated to Android 3.2 and add the configChanges in the manifeast file. But Now I am unable to show the ads. But previously I am seeing the frame for ads with error text. But now there is no frame for ads. – Subrat Feb 22 '12 at 13:20
  • Are you sure you've declared your AdView correctly? You can check out http://code.google.com/intl/da/mobile/ads/docs/android/fundamentals.html – RajPara Feb 22 '12 at 16:22
  • Below is the AdView: – Subrat Feb 23 '12 at 07:26
  • Are you getting anything back from your logcat output in the console when you run your app? – RajPara Feb 23 '12 at 16:06