Created
February 10, 2016 08:18
-
-
Save judepereira/4de788c07b56f14efe04 to your computer and use it in GitHub Desktop.
Setting the CleverTap SDK credentials programmatically in Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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