質問

i have integrate everything properly. the only problem is when i want to load the ads(any ads of appflood) the example is interstitial ads

AppFlood.showFullScreen(this);

the error is

The method showFullScreen(Activity) in the type AppFlood is not applicable for the arguments (LiveWallpaper)

i ever integrate appflood with my libgdx game that extend AndroidApplication class, but in live wallpaper this doesn't work. i want to make appflood works in libgdx livewallpaper too

役に立ちましたか?

解決

This a reply to @newbieUser comment

AppFlood.initialize(this, "", "", AppFlood.AD_ALL);
AppFlood.setEventDelegate( new AFEventDelegate() {  
@Override
public void onClose(JSONObject arg0) {
finish();
}

@Override
public void onClick(JSONObject arg0) {

}
});


AppFlood.showFullScreen(this);

AppFlood.setEventDelegate is used to add listener

他のヒント

create a activity class which shows appflood in its onCreate() method

and attach a listner to app flood to give you a callback that app flood is closed or not.

on its close call back finish your activity.

call the intent for this activity in your onCreateEngine() method

This should help you out

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top