App Performance Management (APM) helps you improve user experience of your apps by helping you discover and rectify app performance issues.
- A computer with Android Studio installed for app development
- A device or an emulator in Android Studio running Android 4.2 or a later version
- Check whether you have a HUAWEI ID. If not, register one and pass identity verification.
- Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app).
- Select your project and app in My projects, and go to Quality > APM to enable the APM service.
- Go to Project settings > General information, download the agconnect-services.json file, and copy this file to the app's module directory.
The APM SDK supports collecting performance data automatic and collection switch setting.
Sample code: src\main\java\com\example\quickstart\apmsandroiddemo\MainActivity.java
If you have any questions about the sample code, try the following:
- Visit Stack Overflow, submit your questions, and tag them with
appgallery
. Huawei experts will answer your questions. - Go to AppGallery in the HUAWEI Developer Forum and communicate with other developers.
If you encounter any issues when using the sample code, submit your issues or submit a pull request.
The sample code is licensed under the Apache License, version 2.0.