Has anyone tried to implement AppFlood SDK with an andengine game?
I tried this way, but I get a ‘initialize failed’ error:
@Override
public void createScene()
{
createBackground();
createMenuChildScene();
resourcesManager.engine.runOnUpdateThread(new Runnable(){
@Override
public void run() {
// TODO Auto-generated method stub
//APPFLOOD
AppFlood.initialize(resourcesManager.activity, "gW0krs8rVSZxiKwX", "7UA4GVoV1aadL52328d61", AppFlood.AD_ALL);
AppFlood.showFullScreen(resourcesManager.activity);
}
});
}
Thanks
Edit: Sorry, I got it. Solution: activity.runOnUiThread()