Applause SDK Pre-Production Installation Guide for Android (Maven)

Applause SDK Pre-Production Installation Guide for Android (Maven)

STEP 1 – INTEGRATE THE APPLAUSE ANDROID  SDK

Please visit our download page to get the latest Applause Android SDK.

STEP 2 – RUN THE SDK

Each time your app launches, you should start a new Applause SDK session. The only action to take is to invoke the Applause.startNewSession() method in the onCreate event of your application class.

First, make sure you import the Applause SDK

import com.applause.android.Applause;

Then launch the Applause SDK

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Applause.startNewSession(this, "Your-Application-Key-Goes-Here");
    }
}

STEP 3 – MODIFY THE ANDOIRD MANIFEST FILE

The easiest way to have correct AndroidManifest.xml file is to allow Maven Plugin to do the merging. Go to plugin declaration and set <mergeManifests> to true. As the result it should look as follows

<plugin>
  <groupID>com.jayway.maven.plugins.android.generation2</groupId>
  <artifactID>android-maven-plugin</artifactID>
  <version>3.8.2</version>
  <extensions>true</extensions>
  <configuration>
    <!-- add the following mergeManifests option -->
    <mergeManifests>true</mergeManifests>
  </configuration>
</plugin>

If you don’t want to use the extention please add following activities to <application> section. The result should look as follows

<application>
  <activity android:name="com.applause.android.ui.ProblemActivity" />
  <activity android:name="com.applause.android.ui.FeedbackActivity" />
  <activity android:name="com.applause.android.ui.ScreenshotEditorActivity" />
</application>

STEP 4 – PERMISSIONS

Appluase SDK requires the android.permission.INTERNET permission to work. If you already set the <mergeManifests> to true there is further action required. Otherwise please add following line inside <manifest> tags

<uses-permission android:name="android.permission.INTERNET"/>

For more info

For more information like setting the API key go to the main help page