After successfully setting up the ASAP SDK on your Android application, the next step is to integrate it using Maven.
Include the following code in the root-level build.gradle file to integrate the SDK with your app.
repositories
{
google()
mavenCentral()
maven {
}
maven {
}
}
![](https://static.zohocdn.com/zoho-desk-editor/static/images/file.png)
The ASAP SDK was developed using Android Architecture Components. Therefore, the app code must include maven.google.com/google().
Next, include the dependency required for the SDK.
Include the dependency code required in the dependencies section of the app-level build.gradle file.
1. ‘com.zoho.desk:asapsdk:3.0_BETA_23' - ASAP SDK with default UI; includes Chat.
2. ‘com.zoho.desk:asap:3.0_BETA_20' - ASAP SDK with default UI; does not include Chat.
3. ‘com.zoho.desk:asap-api:3.0_BETA_20' - ASAP SDK without UI. Serves as the API provider.
- dependencies { implementation 'com.zoho.desk:asapsdk:3.0_BETA_17' }
You have successfully integrated the SDK with your app.
The configuration details of the ASAP SDK are as follows:
• compileSdkVersion - 33
• targetSdkVersion - 33
• minSdkVersion - 23
• org.jetbrains.kotlin:kotlin-stdlib:1.0.8
How to initialize the SDK on your Android App
Once the SDK integration is completed, you must initialize the ASAP SDK on your app.
The following three keys are crucial for the initialization:
• Org ID
• App ID
• Data Center
The values of these keys appear under the Code Snippet section on the setup page of the ASAP help widget in Zoho Desk.
To initialize the SDK in your app, add the following code snippet to a subclass of the Application class.
import android.app.Application;
import com.zoho.desk.asap.api.ZohoDeskPortalSDK;
public class MyApplication extends Application {
public static ZohoDeskPortalSDK apiProvider;
@Override
public void onCreate() {
super.onCreate();
ZohoDeskPortalSDK.Logger.enableLogs();
apiProvider = ZohoDeskPortalSDK.getInstance(getApplicationContext());
apiProvider.initDesk(orgId, appId, datacenterValue);
}
}
![](https://static.zohocdn.com/zoho-desk-editor/static/images/file.png)
Data Centers (DCs), according to the deployment types:
CN - ZDPDataCenter.CN
EU - ZDPDataCenter.EU
US - ZDPDataCenter.US
IN - ZDPDataCenter.IN
AU - ZDPDataCenter.AU
JP - ZDPDataCenter.JP