Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can you initialize Chartboost for android? I followed everything in the tutorial provided by Chart Boost but the SDK is still not initialized


What I have tried:

Required permission: android.permission.INTERNET
Required permission: android. permission.ACCESS_NETWORK_STATE

repositories {
      maven { url "https://chartboostmobile.bintray.com/Chartboost" }
}

dependencies {
       implementation 'com.chartboost:chartboost-sdk:8.2.0'
}
        implementation 'com.google.android.gms:play-services-ads:19.5.0'
        implementation 'com.google.android.gms:play-services-base:17.5.0'
        implementation "com.google.android.gms:play-services-ads-identifier:17.0.0"
        implementation 'com.google.gms:google-services:4.3.4'
        apply plugin: 'com.google.gms.google-services'

<pre>

<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" />

import com.chartboost.sdk.Chartboost;
import com.chartboost.sdk.CBLocation;
import com.chartboost.sdk.ChartboostDelegate;

public static void startWithAppId(Context context, ​String appId, String appSignature){
}

Chartboost.showInterstitial(CBLocation.LOCATION_DEFAULT); 

-keep class com.chartboost.** { *; }
Posted
Comments
[no name] 13-Dec-20 11:23am    
Ask the "Chart Boost" people.
Keith.Harrie 18-Dec-20 15:04pm    
I did but they requested the android cat logs to check for errors or any message about chart boost, and there was none . . . so they couldn't help me
David Crow 18-Dec-20 15:17pm    
"...and there was none"

Since you failed to show any relevant code, I can only make the assumption that you are not catching any exceptions or calling any of the Log methods.

"...so they couldn't help me"

Couldn't or wouldn't?
David Crow 13-Dec-20 17:58pm    
So it looks as if you've shown us everything that is shown here:

https://answers.chartboost.com/en-us/child_article/android-integration

How is that helpful?  Unless you put those code snippets into their appropriate place in your project, I suspect it will not work.  You've not shown that.

"...but the SDK is still not initialized"

How are you verifying this?
Keith.Harrie 18-Dec-20 14:58pm    
I check the android cat log and I also contacted chart boost but they couldn't help me ... I placed all the codes in the appropriate places e.g. android manifest, main activity, build gradle etc.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900