Higgey
buzztouch Evangelist
Profile
Posts: 394
Reg: Sep 07, 2011
West Midlands
13,540
11/14/12 05:25 AM (13 years ago)

Latest Admob Integration SDK

Hi, I've just tried using the latest version of Admob's SDK 6.2.1 I can no longer see Admob ads. Instead, I get an error where the ad should be on the screen, The error says: "You must have AdActivity declared in AndroidManifest.xml with configChanges" The code that I normally put into the manifest is <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation"/> I am using BTv2.0 on my own server. I'd be grateful for any help on this one, please. Kind regards, John
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
11/15/12 05:37 AM (13 years ago)
Right click project, go to properties > Android > Change Build Target to Google API 16. (This is ok to do with BT projects, or any project). Change the manifest entry from: <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation"/> to: <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
 
Higgey
buzztouch Evangelist
Profile
Posts: 394
Reg: Sep 07, 2011
West Midlands
13,540
like
11/15/12 06:42 AM (13 years ago)
Thanks, Raveyd. I've had to try updating eclipse with new APIs and it's gone awfully wrong. I may be a while responding while I try to figure it out. I might need to get someone to fix it for me. Kind regards, John
 
Higgey
buzztouch Evangelist
Profile
Posts: 394
Reg: Sep 07, 2011
West Midlands
13,540
like
11/22/12 08:05 AM (13 years ago)
Now that I've got a professional developer (which I am not) to sort out and reinstall my corrupted copy of Eclipse (which I couldn't) I have been able to implement the advice above. Hey presto! Admob is working again! Many thanks, Raveyd. John
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
11/22/12 09:53 AM (13 years ago)
Excellent! Glad you're earning again!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.