KocomojoSDK for Android




Add jitpack.io and KocomojoSDK Android Maven repository to your build.gradle file:

repositories {

  maven { url 'https://jitpack.io' }
  maven {
      url 'https://raw.githubusercontent.com/KocomojoLLC/KocomojoSDK-Android/master'


Add KocomojoSDK as a dependency:

dependencies {
  compile 'com.kocomojo:kocomojo-sdk:0.9.864'

Then simply run gradle to install KocomojoSDK into your project.



Currently KocomojoSDK only supports 32-bit libraries. To ensure compatibility, you'll need to ensure it only uses 32-bit libraries:

android {
  defaultConfig {
    ndk {
        abiFilters "armeabi-v7a", "x86"


Import KocomojoSDK into your MainApplication.java:

import com.kocomojo.KocomojoSDK;

Add these lines to onCreate():



API Key validation

You can validate your api key directly by calling

KocomojoSDK.getInstance().validateApiKey(new KocomojoSDK.ValidateApiKeyHandler() {
    public void onValidated() {
        Log.d("ApiKey", "Is valid!");

    public void onInvalidated() {
        Log.d("ApiKey", "Is invalid!");

    public void onError(String message) {
        Log.d("ApiKey", "Validation error: " + message);


Experience Or Button


The user can enter KocomojoSDK's interface either via an Experience or a Button. Only one of the two can exist per app.

If the entire app is based on KocmomojoSDK (i.e. the first thing the user would see would be a screen designed in the editor), then you'd want to use KocomojoExperience.

If the app has existing functionality outside of KocomojoSDK, then your app will use KocomojoButton as it's entry point.


Go to Experience Docs  |  Go to Button Docs