Appsee Cocos2d-x (Android) Integration Instructions

Important Note

Video recording is not supported when running in Emulator. Please use a real device to test video recordings.
  1. Configure your project with gradle if you haven't done so.
    If you are not using gradle, you can install Appsee manually.
  2. Add the Appsee as a dependency to your build.gradle file: dependencies {
      compile 'com.appsee:appsee-android-gl:+'
  3. In every activity that is an entry point to your app* add: import com.appsee.Appsee;and add a call to Appsee.start inside the onCreate method:
    Appsee.start("YOUR API KEY"); You can view all your API keys in your dashboard.

    *Entry activities are usually those which have a custom <intent-filter> element in the AndroidManifest.xml file.
  4. Locate the org.cocos2dx.lib.Cocos2dxGLSurfaceView class, and replace the following line: this.setRenderer(this.mCocos2dxRenderer); With this line: this.setRenderer(new AppseeGLSurfaceViewRenderer(this, mCocos2dxRenderer));
  5. If you're using ProGuard, add the following configuration to the "proguard-project.txt" file: -keep class com.appsee.** { *; }
    -dontwarn com.appsee.** ;
    -keep class** { *; }
    -keep interface** { *; }
    -keepattributes SourceFile,LineNumberTable
    And remove the following, if defined: -renamesourcefileattribute SourceFile
That's it, you're good to go!
Now, launch your app, use it for a few seconds and minimize the app to the background.
Visit the dashboard to view your first recording.

What's next?

You can review the full API reference docs to customize your Appsee implementation.
Here are a few important topics to review: If you have any questions or need any assistance please contact us at