lyspring / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

Android SDK: Won't show ads if AdWhirlLayout created without internet connection #231

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce this:
1. Turn off internet connection for device
2. Launch app containing AdWhirl
3. Re-enable internet connection
4. AdWhirl will never show your ads, even though you now have internet!

It makes sense that once internet is enabled, it should be able to start 
retrieving ads. This doesn't appear to be the case however. A user could simply 
launch apps without internet on and then re-enable it to never see ads.

This is using the AdWhirl 3.0.0 SDK for Android and a device running Android OS 
2.1.

It shouldn't require removing the old AdWhirlLayout and recreating a new one 
after restoring the internet connection to make this work, it should just 
simply work! It shouldn't decide to fail and never retry just because it was 
started with no network connectivity.

Original issue reported on code.google.com by gfind...@gmail.com on 23 Jun 2011 at 7:13

GoogleCodeExporter commented 8 years ago
It might be better if your app watches for network reachability on its own.  
When the device goes online, you can call:

adWhirlLayout.adWhirlManager.fetchConfig();
adWhirlLayout.extra = adWhirlLayout.adWhirlManager.getExtra();
adWhirlLayout.rotateAd();

Original comment by wesgood...@google.com on 25 Jun 2011 at 12:16

GoogleCodeExporter commented 8 years ago
I can't call rotateAd() since it's a private method

Original comment by gfind...@gmail.com on 28 Jun 2011 at 4:20

GoogleCodeExporter commented 8 years ago
Sorry, you should be able to call adWhirlLayout.rollover(); instead.

Original comment by wesgood...@google.com on 28 Jun 2011 at 7:20