This documentation guides you through setting up and implementing the Android SDK.
You must have Android Studio installed to set up this SDK. Refer to the Android Studio site for more information.
Integrating the SDK into a Project
Complete the following steps to integrate the SDK within your app:
- Download the SDK source provided to you by Support.
- Open your app project and switch to Project View.
- Copy and paste the SDK into the app > libs directory.
- Open the
build.gradle(:app)file and include the following code under the dependencies section:
implementation fileTree(include: ['*.jar'], dir: 'libs')
- A notification appears prompting you to perform a project sync. Click Sync Now in the notification to do this.
To initialize an object to communicate with the Engine API, use the following code:
sdkInstace = new KiboPersonalization(account, user, contextMap);
For a complete list of methods and objects you can use, refer to SDK API Reference.