using: eclipse I have created a android app and I am trying to add some ads on to it. I am using admob.com but I am not sure what I am doing wrong. First here is error I am getting: #------- #ERROR: #------- 08-27 23:09:03.650: E/AndroidRuntime(26340): FATAL EXCEPTION: main 08-27 23:09:03.650: E/AndroidRuntime(26340): Process: com.g.tictactoe, PID: 26340 08-27 23:09:03.650: E/AndroidRuntime(26340): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.g.tictactoe/com.gemini.bh.Splash}: android.view.InflateException: Binary XML file line #7: Error inflating class com.google.ads.AdView 08-27 23:09:03.650: E/AndroidRuntime(26340): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2328) 08-27 23:09:03.650: E/AndroidRuntime(26340): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2386) 08-27 23:09:03.650: E/AndroidRuntime(26340): at android.app.ActivityThread.access$900(ActivityThread.java:169) 08-27 23:09:03.650: E/AndroidRuntime(26340): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277) 08-27 23:09:03.650: E/AndroidRuntime(26340): at android.os.Handler.dispatchMessage(Handler.java:102) …

Member Avatar
Member Avatar
+0 forum 1

Greetings...! I have this admob code in a class file: package { import flash.events.MouseEvent; import flash.display.MovieClip; import flash.system.System; import flash.system.Capabilities; import flash.display.Sprite; import flash.events.Event; import flash.desktop.NativeApplication; import flash.utils.setTimeout; import com.hdi.nativeExtensions.NativeAds; import com.hdi.nativeExtensions.NativeAdsEvent; public class Main extends MovieClip { public var na : NativeApplication; private var admobId:String = 'a1514b5ef85e336'; public function Main() { na = NativeApplication.nativeApplication; na.addEventListener('exiting',exit,false,0,true); na.addEventListener('deactivate',exit,false,0,true); if ( stage ){ stage.scaleMode = 'noScale'; stage.align = 'TL'; } if ( loaderInfo ){ loaderInfo.addEventListener( Event.INIT, init, false, 0, true ); } else { init(null); } } public function exit ( e:* = null ):void { NativeAds.deactivateAd(); setTimeout(finalExit,250); } private function finalExit():void …

Member Avatar
+0 forum 0

Here is the thing, as you might know AdMob has a `AdSize.*` function, where u put `Banner` to show banner ads, and AD_banner` for tablet banners, what i want to do is take a screen size of a device so that i could throw it in my if statement and then put the right banner for right device, i hope i was clear enough.So anyone can tell me how can i get the screen size of device? Thank u

Member Avatar
Member Avatar
+0 forum 1

I've an app with Admob banner implemented in it. I can see ads in android emulators and devices, but i can't get the ads in Samsung Galaxy tab , anyone has any idea why is it so??

Member Avatar
+0 forum 0

The End.