SDKBOX Chartboost - wrong chartboost.jar file in 2.2.4.14 [BUG]

Hi

I updated Chartboost plugin to version 2.2.4.14, and found that it is not working:

07-11 14:38:36.537: W/System.err(8231): java.lang.RuntimeException: Please add <activity android:name=“com.chartboost.sdk.CBImpressionActivity”
07-11 14:38:36.537: W/System.err(8231): android:excludeFromRecents=“true”
07-11 14:38:36.537: W/System.err(8231): android:theme=“@android:style/Theme.Translucent.NoTitleBar.Fullscreen”
07-11 14:38:36.537: W/System.err(8231): android:configChanges=“keyboardHidden|orientation|screenSize”/> in your android manifest.xml
07-11 14:38:36.537: I/IAP(8231): AndroidManifest has no store metadata. Defaulting to 'googleplay
07-11 14:38:36.542: I/IAP(8231): init Google store
07-11 14:38:36.542: I/IAP(8231): init Google IAP
07-11 14:38:36.542: W/System.err(8231): at com.chartboost.sdk.c.c(SourceFile:702)
07-11 14:38:36.542: W/System.err(8231): at com.chartboost.sdk.Chartboost$12.run(SourceFile:196)
07-11 14:38:36.542: W/System.err(8231): at com.chartboost.sdk.Chartboost.a(SourceFile:1394)
07-11 14:38:36.542: W/System.err(8231): at com.chartboost.sdk.Chartboost.startWithAppId(SourceFile:182)
07-11 14:38:36.542: W/System.err(8231): at com.sdkbox.plugin.PluginChartboost$2.run(PluginChartboost.java:81)
07-11 14:38:36.542: W/System.err(8231): at android.os.Handler.handleCallback(Handler.java:739)
07-11 14:38:36.542: W/System.err(8231): at android.os.Handler.dispatchMessage(Handler.java:95)
07-11 14:38:36.542: W/System.err(8231): at android.os.Looper.loop(Looper.java:145)
07-11 14:38:36.542: W/System.err(8231): at android.app.ActivityThread.main(ActivityThread.java:5832)
07-11 14:38:36.542: W/System.err(8231): at java.lang.reflect.Method.invoke(Native Method)
07-11 14:38:36.542: W/System.err(8231): at java.lang.reflect.Method.invoke(Method.java:372)
07-11 14:38:36.542: W/System.err(8231): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
07-11 14:38:36.542: W/System.err(8231): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)
07-11 14:38:36.547: W/System.err(8231): java.lang.Exception: SDK Initialization error. Activity context seems to be not initialized properly, host activity or application context is being sent as null
07-11 14:38:36.547: W/System.err(8231): at com.chartboost.sdk.c.t(SourceFile:549)
07-11 14:38:36.547: W/System.err(8231): at com.chartboost.sdk.c.a(SourceFile:247)
07-11 14:38:36.547: W/System.err(8231): at com.chartboost.sdk.Chartboost$19.run(SourceFile:1106)
07-11 14:38:36.547: W/System.err(8231): at com.chartboost.sdk.Chartboost.a(SourceFile:1394)
07-11 14:38:36.547: W/System.err(8231): at com.chartboost.sdk.Chartboost.setDelegate(SourceFile:1103)
07-11 14:38:36.547: W/System.err(8231): at com.sdkbox.plugin.PluginChartboost$2.run(PluginChartboost.java:82)
07-11 14:38:36.547: W/System.err(8231): at android.os.Handler.handleCallback(Handler.java:739)
07-11 14:38:36.547: W/System.err(8231): at android.os.Handler.dispatchMessage(Handler.java:95)
07-11 14:38:36.547: W/System.err(8231): at android.os.Looper.loop(Looper.java:145)
07-11 14:38:36.547: W/System.err(8231): at android.app.ActivityThread.main(ActivityThread.java:5832)
07-11 14:38:36.547: W/System.err(8231): at java.lang.reflect.Method.invoke(Native Method)
07-11 14:38:36.547: W/System.err(8231): at java.lang.reflect.Method.invoke(Method.java:372)
07-11 14:38:36.547: W/System.err(8231): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
07-11 14:38:36.552: W/System.err(8231): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

I downloaded Chartboost SDK from chartboost.com, replaced chartboost.jar file and now plugin works fine.

It seems that plugin uses wrong chartboost.jar file, I think you should fix that

Unfortunately, plugin works very unstable with the chartboost.jar file I downloaded from Chartboost web site, so I have to revert to v2.2.3.5 which works fine.

I assume that Chartboost Plugin 2.2.4.14 is broken, please check that

I think the latest chartboost requires you to add the following to your AndroidManifest.xml

It’s actually in the error log you sent, we’re looking into if we can add that automatically for existing projects.

<activity android:name="com.chartboost.sdk.CBImpressionActivity"
               android:excludeFromRecents="true"
               android:hardwareAccelerated="true"
               android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
               android:configChanges="keyboardHidden|orientation|screenSize" />

i use sdkbox chartboost sample project try to reproduce.

  1. use chartboost cpp project, the project has installed v2.2.0.13 charboost plugin
  2. run cd cpp, entry cpp project
  3. run sdkbox update, update chartboost plugin to 2.2.4.14
  4. run cocos run -p android
  5. a second, just wait chartboost cache finish. press video button
  6. ad show

Chartboost plugin works if I place that code into AndroidManifest.xml, but I found several issues which don’t exist in v2.2.3.5. For example, if I press Home button while ads is showing, and then open the game again, the game may not respond on touch events or black screen is displayed instead of the game. If I close ads, minimize game, open app again - ads somehow are still diplaying (I closed them before minimizing) with various glitches.

Everything works fine when I switched back to v2.2.3.5

we have reproduce this, we will fix it ASAP