Using an Alternate Host Server

Using an Alternate Host Server

Customize server URL

This step is ONLY needed if you need to target a server other than the default server (which is: https://sdk.applause.com).

import com.applause.android.Applause;
import com.applause.android.config.Configuration;

public class MyApplication extends Application {

    String APP_KEY = "Your-Application-Key-Goes-Here";

    @Override
    public void onCreate() {
        super.onCreate();
        Configuration configuration = new Configuration.Builder(this)
              .withAPIKey("Your-Application-Key-Goes-Here")                
              .withServerURL("Your-Server-Url-Goes-Here")               
              .build();
        Applause.startNewSession(this, configuration);
    }
}