The sample code provides a demo project that demonstrates how to call open APIs of HUAWEI DTM. Guided by the demo, you will learn how to process events in your app and report events to HUAWEI Analytics.
Sample Code |
Find It on Gitee |
Find It on GitHub |
|---|---|---|
Android Studio sample code |
Before using the sample code, read the README file in the sample project carefully. Run the sample code only after you complete the following operations:
Sign in to AppGallery Connect, download the agconnect-services.json file of your app, and copy the file to the app directory of the sample project.
Open the build.gradle file in the sample project, and change the value of applicationId to your app package name.
The sample code provides a demo project that demonstrates how to call open APIs of HUAWEI DTM. Guided by the demo, you will learn how to process events in your app and report events to HUAWEI Analytics.
Sample Code |
Find It on Gitee |
Find It on GitHub |
|---|---|---|
Eclipse sample code |
The sample code applies to the Android SDK whose API level is 28. You need to integrate the required Android SDK before using the sample code.