How can I get new ad when return from ad? :android

127 views
Skip to first unread message

bongoxx1

unread,
Jul 27, 2011, 10:37:42 PM7/27/11
to Google AdMob Ads Developers
I cant get new ad when return from ad. LoadAd failed on onResume.
(SDK4.1.1)
Is this a specification?


D/dalvikvm( 2137): GC_EXPLICIT freed 11482 objects / 768128 bytes in
185ms
D/dalvikvm( 3690): GC_FOR_MALLOC freed 21195 objects / 1502104 bytes
in 106ms
D/WindowOrientationListener( 2137): onSensorChanged : orientation =
270
W/WindowManager( 2137): No window to dispatch pointer action 0
I/WindowManager( 2137): Setting rotation to 1, animFlags=1
D/On Resume( 3690): pausetrue
W/WindowManager( 2137): No window to dispatch pointer action 1
W/Ads ( 3690): loadAd called while an interstitial or landing page
is displayed, so aborting
<<<<Load ad failed >>>>
D/On Resume( 3690): end
D/webviewglue( 3690): nativeDestroy view: 0x331848
I/Ads ( 3690): onDismissScreen()
E/ ( 2071): ID3 tag present

Tim

unread,
Jul 27, 2011, 11:48:47 PM7/27/11
to Google AdMob Ads Developers
bongoxx1,

That check is to prevent the ad from getting into a weird state by
loading a new ad while the current one is showing. We are looking into
making the onDismissScreen callback a little later so that you can
safely call loadAd from within the callback. Hopefully we'll find a
solution before the next release. In the meantime as a workaround, I
believe if you use a Handler and post to it during the onDismissScreen
callback, I think that should work. I haven't tried it though.

Thanks,
-Tim

bongoxx1

unread,
Jul 29, 2011, 1:55:44 AM7/29/11
to Google AdMob Ads Developers
I used Handler and works fine.
Thanks
Reply all
Reply to author
Forward
0 new messages