Getting Started
Unlock the power of data insights and elevate user engagement with seamless integration of the Antsomi Android SDK
1. Installation
dependencies {
implementation 'com.antsomi:antsomi:1.1.59'
}2. Initialization
Step 1: Import Antsomi packages in your Application class.
import com.antsomi.AntsomiSdk;Step 2: Initialize Antsomi SDK
import android.app.Application;
import com.antsomi.AntsomiSdk;
public class ApplicationClass extends Application {
// ... other fields and methods
@Override
protected void onCreate() {
super.onCreate();
// Init Antsomi SDK instance
try {
String portalId = "564890637";
String sourceId = "564993464";
String appId = "e4e8d06e-4d97-43df-93e8-c36238147ca0";
new AntsomiSdk.Builder(this, portalId, sourceId, appId).build();
} catch (Exception e) {
Log.e(TAG, e.getMessage(), e);
}
}
}Key
Description
Example
3. Additional steps (Optional)
Tracking Screen View Event
Displaying Antsomi Media Template
Last updated