can anybody tell me how can i configure the Chart boost add platform in an And engine game to show add's in the game. i have downloaded the chartboost sdk and i am trying to configure the ChartBoost in onCreateEngineOption like -
public EngineOptions onCreateEngineOptions()
{
camera = new BoundCamera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);
EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE_FIXED, new FillResolutionPolicy(), this.camera);
engineOptions.getAudioOptions().setNeedsMusic(true).setNeedsSound(true);//turn on the music and sound option
engineOptions.getRenderOptions().getConfigChooserOptions().setRequestedMultiSampling(true);
engineOptions.setWakeLockOptions(WakeLockOptions.SCREEN_ON);//tell the engine to always keep the screen unloced while game is running
engineOptions.getRenderOptions().setDithering(true);//enable the Dithering for the whole game by default
return engineOptions;
// Configure Chartboost
this.cb = Chartboost.sharedChartboost();
String appId = "YOUR_APP_ID";
String appSignature = "YOUR_APP_SIGNATURE";
this.cb.onCreate(this, appId, appSignature, null);
}
and my game is crashing... Thanks !!!
I have figured it out how to Integrate the Chartboost in an Andengine Game by myself
Step 1) Initialize the Chartboost in OnCreateEngineOption
Step 2) Start Session in onCreateResource Method
Step 3 Caching the add's initially use onCreateScene Method
Step 4 to show add in your scene call following method