English | 中文
- Introduction
- Preparing the Environments
- Getting Started
- Sample Code
- Result
- Question or issues
- License
Remote Configuration allows you to manage parameters online. With the service, you can change the behavior and appearance of your app online without requiring users to update the app. Remote Configuration provides cloud-based services, the console, and the client SDK. By integrating the client SDK, your app can periodically obtain parameter values delivered on the console to modify the app's behavior and appearance.
- A computer with Android Studio installed for app development
- A device or emulator in Android Studio running Android 4.2 or a later version
Before running the quickstart app, you need to:
- If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification.
- Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app).
- Enable Remote Configuration. (For details, please refer to the development guide.)
- Select Project Settings,download the agconnect-services.json file from AppGallery Connect and copy the agconnect-services.json file to the app root directory.
The fetch API is called before app startup, and data is used after the fetch operation is successful. src\main\java\com\huawei\agc\quickstart\Test1Activity.java
Data fetched by the calling the fetch API is applied upon the next app startup. src\main\java\com\huawei\agc\quickstart\Test2Activity.java
**Click 'FETCH DATA AND APPLY'
**Click 'FETCH DATA AND APPLY NEXT STARTUP'
If you have questions about how to use AppGallery Connect Demos, try the following options:
- Stack Overflow is the best place for any programming questions. Be sure to tag your question with appgallery.
- Huawei Developer Forum 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 to the Repository. Even better you can submit a Pull Request with a fix.
Remote Configuration quickstart is licensed under the [Apache License, version 2.0] (http://www.apache.org/licenses/LICENSE-2.0).