I'm building an android application that uses flurry sdk.
I have in my activity the following code:
protected void onStart() {
super.onStart();
FlurryAgent.setVersionName("1.0");
FlurryAgent.onStartSession(this, "XXXXXXXX");
FlurryAgent.setLogEnabled(true);
FlurryAgent.setLogEvents(true);
FlurryAgent.setLogLevel(Log.VERBOSE);
FlurryAgent.initializeAds(this);
FrameLayout fViewGroup = (FrameLayout) findViewById(R.id.flurry);
FlurryAgent.getAd(this, "BANNERNAME", fViewGroup, FlurryAdSize.BANNER_TOP,0);
}
public void onStop()
{
super.onStop();
FlurryAgent.onEndSession(this);
}
So here are my two questions:
- When trying to run in android below Gingerbread flurry throws exception as it uses String.isEmpty that is not available. Is there a way to overcome this exception?
- When running in android above Gingerbread, code runs "fine" but does not display the ads. Flurry just prints in LogCat "ad server responded but send no ads units". In flurry panel I have created the project, and the adSpace with the same name as in the above code.
Note: I've done what is said in this post “Ad server responded but sent no ad units” in Flurry in android and still neither testads are showing up.
Thanks!