Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Dear developer!
Due to business adjustments, we will close the entrance for Huawei Analytics services on June 30, 2024 and no longer support new user registration. Developers of projects that have already activated Huawei Analytics services are not affected and can still continue to use Huawei Analytics services. If there are any changes, we will notify them separately. Thank you for your support!
The sample code provides a demo project that demonstrates how to call open APIs of Analytics Kit. Guided by the demo, you will learn how to:
Sample Code | Find It on Gitee | Find It on GitHub |
|---|---|---|
HUAWEI DevEco Studio sample code |
Before using the sample code, read the README file in the sample project carefully. You can use the sample code only after completing the following operations:
Sign in to AppGallery Connect, download the agconnect-services.json file of your app, and copy the file to the entry directory of the demo project.
Open the config.json file in the entry directory of the sample project, and change the value of bundleName to your app package name. In the abilities element, declare the AppGallery Connect provider and replace com.example.myapplication with your app package name.