• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Google Admob Integration Errors

 
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Guys,
i am working on an app for android 2.2 Platform, wanted to integrate admob into it, So i set up an account downloaded the latest admob sdk and created an ad Layout in xml followed the instructions mentioned in docs.I have set the target in project properties to 14 and set the min SDK to 8 now the error occurs when i configure
The String "keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" wont compile for android 2.2 it throws errors. However if i compile without these "screenSize|smallestScreenSize", it compiles but the ad area in the app shows an error saying You must have AdActivity declared in AndroidManifest with configChanges

Can you guys suggest a solution, any help with this problem is appreciable

Thanks & Regards,
Zoheb
 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Above is working fine for my app.


 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Hardik,

The Latest admob jar 4.3.1 requires you to build against platform-13 or higher since it is optimized for tablets, it requires you to have the complete string for configChanges attribute i mentioned in earlier post.However one can deploy it for lower platforms by mentioning minSdk.That solved the problem but my app is still failing to receive ads as it states in the Logcat that there are no ads in the inventory.So that needs sorting out. Thanks for the response tough

Best Regards,
Zoheb
 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have build my app using 2.3.

And for the Ad's Banner size what size you are giving.
It will return larger image if you are using for tablet and smartphone will not be able to load that big image.
 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since my app is targeted for 2.1, 2.2 platform i am using banner as the adSize. I am worried tough what would happen if my app ends up on an tablet.Hey hardik one more thing tough can you give any sites that have good tutorials on Json and parsing it . I want to get started on that too

-Zoheb
 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://p-xr.com/android-tutorial-how-to-parse-read-json-data-into-a-android-listview/

Above tutorial is nice to start with
 
The City calls upon her steadfast protectors. Now for a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic