EXAMPLE APPLICATION
Want to see the Mobile SDK up and running in a demo project right now? Take a look at our Android Hello World application – available in Github.
https://github.com/ApplauseAQI/AH-Android-Int
STEP 1 – INTEGRATE THE MOBILE SDK
First visit the download page to get the latest Applause Android SDK
If you’re not using gradle please see:
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.
Please note the ‘withUTestEnabled‘ flag. If you’re using beta.applause.com then this has to be set to false. But if you’re using our uTest testing services it should be true.
First, make sure you import the Applause SDK
import com.applause.android.Applause;
import com.applause.android.config.Configuration;
Then launch the Applause SDK
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Configuration configuration = new Configuration.Builder(this)
.withAPIKey("Your-API-Key-Goes-Here")
.withUTestEnabled(false)
.build();
Applause.startNewSession(this, configuration);
}
}
APP Key
Note in order for your application logs, bugs and crashes to be reported to your application you have to add the API key within the confiuration.
Go to beta.applause.com and in the dashboard or settings of your application you’ll see your app key.
STEP 3 – PERMISSIONS
By default the SDK adds the android.permission.INTERNET
permission. This is required for SDK to contact the sessions server.
Applause SDK is capable of gathering device state like Bluetooth or Networking. Please check the detailed instructions in this section.