Skip to content

Instantly share code, notes, and snippets.

@judepereira
Created February 10, 2016 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judepereira/4de788c07b56f14efe04 to your computer and use it in GitHub Desktop.
Save judepereira/4de788c07b56f14efe04 to your computer and use it in GitHub Desktop.
Setting the CleverTap SDK credentials programmatically in Android
package com.wizrocket.br;
import android.annotation.TargetApi;
import android.os.Build;
import com.clevertap.android.sdk.ActivityLifecycleCallback;
import com.clevertap.android.sdk.CleverTapAPI;
public class MyApplication extends android.app.Application {
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override
public void onCreate() {
CleverTapAPI.changeCredentials("my account", "my token");
ActivityLifecycleCallback.register(this);
super.onCreate();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment