# agc-apms-codelab-java **Repository Path**: appgallery_connect/agc-apms-codelab-java ## Basic Information - **Project Name**: agc-apms-codelab-java - **Description**: App Performance Management (APM) of HUAWEI AppGallery Connect provides minute-level app performance monitoring capabilities. You can view and analyze app performance data collected by APM in AppGallery Connect to comprehensively understand online performance of apps in real time, helping you quickly and accurately rectify app performance problems and continuously improve user experience. - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-27 - **Last Updated**: 2021-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # APMS Demo ## Table of Contents * [Introduction](#introduction) * [Preparing the Environments](#preparing-the-environments) * [Getting Started](#getting-started) * [Sample Code](#sample-Code) * [Result](#result) * [Question or issues](#question-or-issues) * [License](#license) ## Introduction Helps you improve user experience of your apps by helping you discover and rectify app performance issues. ## Preparing the Environments * A computer with Android Studio installed for app development * A device or emulator in Android Studio running Android 4.2 or a later version ## Getting Started Before running the apms quickstart app, you need to: 1. If you do not have a HUAWEI Developer account, you need to [register an account](https://developer.huawei.com/consumer/en/doc/start/registration-and-verification-0000001053628148) and pass identity verification. 2. Use your account to sign in to [AppGallery Connect](https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-Guides/agc-get-started), create an app, and set Package type to APK (Android app). 3. Select your project and app in My projects, and go to Quality > APMS to enable the APMS service. 4. Select Project Settings,download the agconnect-services.json file from AppGallery Connect and copy the agconnect-services.json file to the app root directory. ## Sample Code The APMS SDK supports collecting performance data automatic and collection switch setting. Sample code: src\main\java\com\example\quickstart\apmsandroiddemo\MainActivity.java ## Result **Report APMS Data**
resultpage ## Question or issues If you have questions about how to use AppGallery Connect Demos, try the following options: * [Stack Overflow](https://stackoverflow.com/users/14194729/appgallery-connect) is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services. * [Huawei Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) AppGallery Module is great for general questions, or seeking recommendations and opinions. If you run into a bug in our samples, please submit an [issue](https://github.com/AppGalleryConnect/agc-demos/issues) to the Repository. Even better you can submit a [Pull Request](https://github.com/AppGalleryConnect/agc-demos/pulls) with a fix. ## License apms quickstart is licensed under the [Apache License, version 2.0] (http://www.apache.org/licenses/LICENSE-2.0).