Skip to content

Commit

Permalink
The readme content is optimized.
Browse files Browse the repository at this point in the history
  • Loading branch information
huan721 committed May 28, 2022
1 parent 8e0c715 commit 59655c4
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 84 deletions.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# agc-android-demos
[![license](https://img.shields.io/badge/license-Apache--2.0-green)](./LICENCE)

This repo contains the source code for AGC Android Demos, which are developed by the AppGallery Connect team.
This repository contains the source code for AppGallery Connect Android demos, which are developed by the AppGallery Connect team.

These demos enable access to using specific APIs. For more information
about demos, and how to use them, see
[Official Documentations](https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-Examples/agc-auth-android-samplecode-0000001058885130).
These demos enable access to using specific APIs. For more demos and how to use them, please refer to the [AppGallery Connect documentation](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-get-started-android-0000001058210705).


## Introduction
Expand All @@ -20,20 +18,20 @@ These are the available plugins in this repository.
| [clouddb-java](./clouddb-java) | [![version](https://img.shields.io/badge/Release-1.4.10.300-yellow)](./clouddb-kotlin) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-clouddb-get-started) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/clouddb) |
| [clouddb-kotlin](./clouddb-kotlin) | [![version](https://img.shields.io/badge/Release-1.4.10.300-yellow)](./clouddb-kotlin) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-clouddb-get-started) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/clouddb) |
| [cloudfunction](./cloudfunction) | [![version](https://img.shields.io/badge/Release-1.6.1.300-yellow)](./cloudfunction) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudfunction-getstarted) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/function) |
| [cloudstorage](./cloudstorage) | [![version](https://img.shields.io/badge/Release-1.3.1.200-yellow)](./agc-cloudstorage-demo-java) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudstorage-getstarted) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-References/overview-0000001054390809?ha_source=hms1) |
| [cloudstorage](./cloudstorage) | [![version](https://img.shields.io/badge/Release-1.3.1.200-yellow)](./agc-cloudstorage-demo-java) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudstorage-getstarted) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/overview-0000001055088626) |
| [crash](./crash) | [![version](https://img.shields.io/badge/Release-1.6.1.300-yellow)](./agc-crash-demo-java) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-crash-getstarted-0000001055260538) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/overview-android-0000001055260460) |
| [dynamicability](./dynamicability) | [![version](https://img.shields.io/badge/Release-1.0.11.302-yellow)](./agc-dynamicability-demo-java) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-featuredelivery-getstarted) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/featuredelivery-overview) |
| [publishingapi](./publishingapi) | [![version](https://img.shields.io/badge/Release-1.0-yellow)](./flutter-hms-safetydetect) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agcapi-publish_api_overview) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/agcapi-appid-list_v2) |
| [remoteconfig](./remoteconfig) | [![version](https://img.shields.io/badge/Release-1.6.0.300-yellow)](./agc-remoteconfig-demo-java) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-remoteconfig-android-getstarted-0000001056347165) <br/> [API Reference](https://developer.huawei.com/consumer/cn/doc/development/AppGallery-connect-References/android-remoteconfig-overview-0000001055692839) |
| [reportsapi](./reportsapi) | [![version](https://img.shields.io/badge/Release-1.0-yellow)](./agc-reportsapi-demo-java) | [Getting Started](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agcapi-reports_api_overview) <br/> [API Reference](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-References/agcapi-appdownloadexport) |

## Precautions
The agc-android-demos project contains 15 independent projects. After downloading the code, you can load different nested projects to the IDE as required. And you can run each project independently.
The agc-android-demos project contains 11 independent projects. After downloading the code, you can load different nested projects to the IDE as required. And you can run each project independently.

## Question or issues
If you have questions about how to use AppGallery Connect Demos, try the following options:
* [Stack Overflow](https://stackoverflow.com/questions/tagged/appgallery) is the best place for any programming questions. Be sure to tag your question with appgallery or appgallery connect.
* [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.
* [Submit ticket online](https://developer.huawei.com/consumer/en/support/feedback/#/) If you encounter a serious or urgent problem, submit a trouble ticket online to contact Huawei technical support.
## Technical Support
If you have any questions about the sample code, try the following:
- Visit [Stack Overflow](https://stackoverflow.com/questions/tagged/appgallery), submit your questions, and tag them with `appgallery` or `appgallery connect`.
- Go to **AppGallery** in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.
- [Submit a ticket online](https://developer.huawei.com/consumer/en/support/feedback/#/) to contact Huawei technical support if you encounter a serious or an urgent problem.

If you run into a bug in our samples, please submit an [issue](https://github.com/AppGalleryConnect/agc-android-demos/issues) to the Repository. Even better you can submit a [Pull Request](https://github.com/AppGalleryConnect/agc-android-demos/pulls) with a fix.
If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-android-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-android-demos/pulls).
8 changes: 4 additions & 4 deletions apms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ App Performance Management (APM) helps you improve user experience of your apps
## Getting Started
1. Check whether you have a HUAWEI ID. If not, [register one](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/en/service/josp/agc/index.html#/), create an app, and set **Package type** to **APK (Android app)**.
3. Select your project and app in My projects, and go to **Quality** > **APM** to enable the APM service.
3. Select your project and app in **My projects**, and go to **Quality** > **APM** to enable the APM service.
4. Go to **Project settings** > **General information**, download the **agconnect-services.json** file, and copy this file to the app's module directory.

## Sample Code
Expand All @@ -35,10 +35,10 @@ Sample code: src\main\java\com\example\quickstart\apmsandroiddemo\MainActivity.j

## Technical Support
If you have any questions about the sample code, try the following:
- Visit [Stack Overflow](https://stackoverflow.com/users/14194729/appgallery-connect), submit your questions, and tag them with `huawei-mobile-services`. Huawei experts will answer your questions.
- Visit the AppGallery section in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.
- Visit [Stack Overflow](https://stackoverflow.com/questions/tagged/appgallery-connect), submit your questions, and tag them with `appgallery`. Huawei experts will answer your questions.
- Go to **AppGallery** in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.

If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-demos/pulls).
If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-android-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-android-demos/pulls).



Expand Down
9 changes: 3 additions & 6 deletions applinking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ English | [中文]()
* [Environment Requirements](#environment-requirements)
* [Getting Started](#getting-started)
* [Sample Code](#sample-Code)
* [Result](#result)
* [Technical Support](#technical-support)
* [License](#license)

Expand All @@ -38,15 +37,13 @@ Sample code: src\main\java\com\huawei\agc\quickstart\MainActivity.java
Redirection to the target page when a deep link is processed in the app.
Sample code: src\main\java\com\huawei\agc\quickstart\DetailActivity.java

## Result


## Technical Support
If you have any questions about the sample code, try the following:
- Visit [Stack Overflow](https://stackoverflow.com/users/14194729/appgallery-connect), submit your questions, and tag them with `AppGallery`. Huawei experts will answer your questions.
- Visit the AppGallery section in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.
- Visit [Stack Overflow](https://stackoverflow.com/questions/tagged/appgallery-connect), submit your questions, and tag them with `appgallery`. Huawei experts will answer your questions.
- Go to **AppGallery** in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.

If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-demos/pulls).
If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-android-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-android-demos/pulls).

## License
The sample code is licensed under the [Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
12 changes: 5 additions & 7 deletions applinking/README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
- [环境要求](#环境要求)
- [快速入门](#快速入门)
- [示例代码](#示例代码)
- [示例效果](#示例效果)
- [技术支持](#技术支持)
- [授权许可](#授权许可)

Expand All @@ -24,30 +23,29 @@ AppLinking是一种不管应用是否已经安装都可以按照所需方式工
## 快速入门

在运行quickstart前,您需要
1、如果没有华为开发者联盟帐号,需要先[注册账号](https://developer.huawei.com/consumer/en/doc/start/registration-and-verification-0000001053628148)并通过实名认证。
1、如果没有华为开发者联盟帐号,需要先[注册账号](https://developer.huawei.com/consumer/cn/doc/start/registration-and-verification-0000001053628148)并通过实名认证。
2、使用申请的帐号登录[AppGallery Connect](https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/)网站创建应用,软件包类型选择“APK(Android应用)”。
3、开启AppLinking服务(详见开发指南)。
4、在AppGallery Connect 网站上下载agconnect-services.json 文件,并拷贝agconnect-services.json文件到app/kotlin-app根目录下。
5、在AppLinking上创建链接前缀,并且复制替换MainActivity中的DOMAIN_URI_PREFIX

## 代码
## 示例代码

应用主入口,处理接收到的链接。
代码:src\main\java\com\huawei\agc\quickstart\MainActivity.java

应用内处理Deeplink之后跳转的界面。
代码:src\main\java\com\huawei\agc\quickstart\DetailActivity.java

## 示例效果

## 技术支持

如果您对使用AppGallery Connect示例代码有疑问,请尝试:

- 开发过程遇到问题上[Stack Overflow](https://stackoverflow.com/users/14194729/appgallery-connect),在`appgallery`标签下提问,有华为研发专家在线一对一解决您的问题。
-[华为开发者论坛](https://developer.huawei.com/consumer/cn/forum/blockdisplay?fid=18) AppGallery Connect板块与其他开发者进行交流。
- 开发过程遇到问题上[Stack Overflow](https://stackoverflow.com/questions/tagged/appgallery-connect),在`appgallery`标签下提问,有华为研发专家在线一对一解决您的问题。
-[华为开发者论坛](https://developer.huawei.com/consumer/cn/forum/block/ag-connect) AppGallery Connect板块与其他开发者进行交流。

如果您在尝试示例代码中遇到问题,请向仓库提交[issue](https://github.com/AppGalleryConnect/agc-demos/issues),也欢迎您提交[Pull Request](https://github.com/AppGalleryConnect/agc-demos/pulls)
如果您在尝试示例代码中遇到问题,请向仓库提交[issue](https://github.com/AppGalleryConnect/agc-android-demos/issues),也欢迎您提交[Pull Request](https://github.com/AppGalleryConnect/agc-android-demos/pulls)

## 授权许可

Expand Down
6 changes: 3 additions & 3 deletions appmessaging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ Sample code: src\main\java\com\huawei\agc\quickstart\appmessaging\AppMessagingAc

## Technical Support
If you have any questions about the sample code, try the following:
- Visit [Stack Overflow](https://stackoverflow.com/users/14194729/appgallery-connect), submit your questions, and tag them with `AppGallery`. Huawei experts will answer your questions.
- Visit the AppGallery section in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.
- Visit [Stack Overflow](https://stackoverflow.com/questions/tagged/appgallery-connect), submit your questions, and tag them with `appgallery`. Huawei experts will answer your questions.
- Go to **AppGallery** in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.

If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-demos/pulls).
If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-android-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-android-demos/pulls).

## License
The sample code is licensed under the [Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
8 changes: 4 additions & 4 deletions appmessaging/README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ AppGallery Connect应用内消息服务,实现用户使用应用时,向活
## 快速入门

在运行quickstart前,您需要
1、如果没有华为开发者联盟帐号,需要先[注册帐号](https://developer.huawei.com/consumer/en/doc/start/registration-and-verification-0000001053628148)并通过实名认证。
1、如果没有华为开发者联盟帐号,需要先[注册帐号](https://developer.huawei.com/consumer/cn/doc/start/registration-and-verification-0000001053628148)并通过实名认证。
2、使用申请的帐号登录[AppGallery Connect](https://developer.huawei.com/consumer/cn/service/josp/agc/index.html#/)网站创建应用,软件包类型选择“APK(Android应用)”。
3、开通应用内消息服务(详见开发指南)。
4、在AppGallery Connect 网站上下载agconnect-services.json文件,并拷贝agconnect-services.json文件到Android Studio项目的应用级根目录下。
Expand All @@ -44,10 +44,10 @@ SDK支持消息展示的控制消息调试。

如果您对使用AppGallery Connect示例代码有疑问,请尝试:

- 开发过程遇到问题上[Stack Overflow](https://stackoverflow.com/users/14194729/appgallery-connect),在`appgallery`标签下提问,有华为研发专家在线一对一解决您的问题。
-[华为开发者论坛](https://developer.huawei.com/consumer/cn/forum/blockdisplay?fid=18) AppGallery Connect板块与其他开发者进行交流。
- 开发过程遇到问题上[Stack Overflow](https://stackoverflow.com/questions/tagged/appgallery-connect),在`appgallery`标签下提问,有华为研发专家在线一对一解决您的问题。
-[华为开发者论坛](https://developer.huawei.com/consumer/cn/forum/block/ag-connect) AppGallery Connect板块与其他开发者进行交流。

如果您在尝试示例代码中遇到问题,请向仓库提交[issue](https://github.com/AppGalleryConnect/agc-demos/issues),也欢迎您提交[Pull Request](https://github.com/AppGalleryConnect/agc-demos/pulls)
如果您在尝试示例代码中遇到问题,请向仓库提交[issue](https://github.com/AppGalleryConnect/agc-android-demos/issues),也欢迎您提交[Pull Request](https://github.com/AppGalleryConnect/agc-android-demos/pulls)

## 授权许可

Expand Down
6 changes: 3 additions & 3 deletions authservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ Sample code: src\main\java\com\huawei\agc\quickstart\auth\PhoneActivity.java

## Technical Support
If you have any questions about the sample code, try the following:
- Visit [Stack Overflow](https://stackoverflow.com/users/14194729/appgallery-connect), submit your questions, and tag them with `AppGallery`. Huawei experts will answer your questions.
- Visit the AppGallery section in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.
- Visit [Stack Overflow](https://stackoverflow.com/questions/tagged/appgallery-connect), submit your questions, and tag them with `appgallery`. Huawei experts will answer your questions.
- Go to **AppGallery** in the [HUAWEI Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101188387844930001) and communicate with other developers.

If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-demos/pulls).
If you encounter any issues when using the sample code, submit your [issues](https://github.com/AppGalleryConnect/agc-android-demos/issues) or submit a [pull request](https://github.com/AppGalleryConnect/agc-android-demos/pulls).

## License
The sample code is licensed under the [Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0).
Loading

0 comments on commit 59655c4

Please sign in to comment.