I’m trying to implement Flurry Ads on android. I’m adding it to the FrameLayout retrieved from getOverlayView(), as suggested in the documentation. In my CoronaApplication I do the following:
@Override
public void onStarted(com.ansca.corona.CoronaRuntime runtime) {
// Analytics
FlurryAgent.onStartSession( com.ansca.corona.CoronaEnvironment.getCoronaActivity() , "MYAPICODE");
FlurryAgent.logEvent("Game Started Android");
// Ads
FlurryAgent.initializeAds( com.ansca.corona.CoronaEnvironment.getCoronaActivity() );
//FlurryAgent.enableTestAds( true );
FlurryAgent.setLogEnabled(true);
FlurryAgent.setLogLevel( 1 );
// Showing the ad
FlurryAgent.getAd( com.ansca.corona.CoronaEnvironment.getCoronaActivity() , "Block Struggle Android", com.ansca.corona.CoronaEnvironment.getCoronaActivity().getOverlayView() , FlurryAdSize.BANNER\_BOTTOM, 0);
}
When my game starts, the ads are loaded fine at the bottom of the screen. However, I ONLY see the ads, meaning that I get a full white screen blocking my game, and then the ads on top of that white screen.
When the ads are refreshed (every 30 seconds), the white screen is removed along with the banner, revealing the game beneath for half a second or so, and then a new whitescreen and banner appears.
Why does this happen, and can anyone suggest a solution? [import]uid: 66464 topic_id: 34139 reply_id: 334139[/import]