// If you do not have an Applause application key, you must first create a // free account. Visit http://www.applause.com for more information about // how to create your account. // // If you already have an Applause account, login to the Applause control // panel at: https://sdk.applause.com // Create a new application (if you have not done so already). Your // application key can be retrieved at any time from the "Settings" tab // on the right menu. public override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.activity_main; if (APP_KEY.Equals("Your-Applause-Application-Key-Goes-Here")) { Toast.makeText(this, "You have not provided Applause Application Key in MainActivity.APP_KEY", Toast.LENGTH_LONG).show(); return; } /// <summary> ///***************************** </summary> /* Creating session configuration */ /// <summary> ///***************************** </summary> // Here create a configuration Applause will use to start a session. // Configuration object uses builder pattern, so you can chain calls and // make the process of creation more compact. IBuilder builder = new Configuration.Builder(this); builder = builder.withAPIKey(APP_KEY); // specify app key // disable with uTest integration for demo purposes builder = builder.withUTestEnabled(false); Configuration configuration = builder.build(); /// <summary> ///***************************** </summary> /* Starting an Applause session */ /// <summary> ///***************************** </summary> // The following line of code actually starts an Applause session in QA // mode. Learn more by visiting // https://help.applause.com/hc/en-us/articles/201954883-Android-SDK-Pre-Production-Installation-Guide Applause.startNewSession(this, configuration); /// <summary> ///********************** </summary> /* Logging with Applause */ /// <summary> ///********************** </summary> // Applause can replace the default logging mechanism with its own // mechanism, assuming you import com.applause.android.Log. See above // for more details. Log.w("myTag", "This log message will be sent to Applause."); }