문제

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