diff --git a/ComponentCodelab/README.md b/ComponentCodelab/README.md index f748c2b657e9c7edcd053b8b1147d2040bbf5ab1..2b6de728f6acd0e5fb5201a1d9b6362e31bd1a44 100644 --- a/ComponentCodelab/README.md +++ b/ComponentCodelab/README.md @@ -1,25 +1,25 @@ ComponentCodelab -What is it? -•This CodeLab aims to let developers understand the common layouts and usage methods of common components for mobile HarmonyOS application development, and experience the whole process from project creation to code and layout writing, to compilation, construction, deployment, and operation. +简介 + • 本CodeLab旨在使开发人员了解用于HarmonyOS手机应用程序开发的通用组件的通用布局和使用方法,并体验从项目创建到代码和布局编写,再到编译、构造、部署和运行的全过程。 -Installation requirements -• Install DevEco Studio and Node.js -• Set up the DevEco Studio development environment. The DevEco Studio development environment needs to depend on the network environment. It needs to be connected to the network to ensure the normal use of the tool. The development environment can be configured according to the following two situations -1. If you can directly access the Internet, just download the HarmonyOS SDK -2. If the network cannot access the Internet directly, it can be accessed through a proxy server -• Generate secret key and apply for certificate +安装要求 +• 安装DevEco Studio和Node.js +• 设置DevEco Studio开发环境。 DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: + 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK + 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 +• 生成密钥并申请证书 -User guide -• Download this ComponentCodelab -• Open HUAWEI DevEco Studio, click File> Open to select this ComponentCodelab -• Click Build> Build App(s)/Hap(s)>Build Debug Hap(s) to compile the hap package -• Click Run> Run 'entry' to run the hap package +用户指南 +• 下载此项目 +• 打开HUAWEI DevEco Studio,单击File> Open选择此ComponentCodelab +• 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 +• 单击Run> Run 'entry'以运行hap包 -Note -• The storage directory of ComponentCodelab must be in English, not Chinese -• You can choose to run the hap package on the simulator or the phone. -• If you run it on the phone, you need to configure the signature and certificate information in the project's File> Project Structure> Modules> Signing Configs. - -Licensing -Please see LICENSE for more info. +注意 +• 项目代码的存储目录需使用英语字符。 +• 您可以选择在模拟器或真机上运行hap软件包。 +• 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。 + +许可 +请参阅LICENSE文件以获得更多信息。 \ No newline at end of file diff --git a/DistributedMail/README.md b/DistributedMail/README.md index 97eda3382163227bcf1b8ef3198975ee5572fa2d..d7fbe336d08e929fece5f6f48bea28cff0068ccb 100644 --- a/DistributedMail/README.md +++ b/DistributedMail/README.md @@ -1,6 +1,24 @@ -# Distributed Mail Client +# 分布式邮件客户端 -In this article, we make a simple demonstration by simulating the collaborative email editing between different devices. We can complete the task of cross device migration through the migration button, and call the cross device pictures through the attachment button. +简介 +在本文中,我们模拟演示了跨设备的电子邮件编辑页面。我们可以通过迁移按钮完成跨设备迁移的任务,并通过附件按钮调用跨设备图片。 -Licensing -Please see LICENSE for more info. \ No newline at end of file +安装要求 +• 安装DevEco Studio和Node.js +• 设置DevEco Studio开发环境。 DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: + 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK + 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 +• 生成密钥并申请证书 + +用户指南 +• 下载此项目 +• 打开HUAWEI DevEco Studio,单击File> Open选择此ComponentCodelab +• 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 +• 单击Run> Run 'entry'以运行hap包 + +注意 +• 您可以选择在模拟器或真机上运行hap软件包。 +• 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。 + +许可 +请参阅LICENSE文件以获得更多信息。 \ No newline at end of file diff --git a/DistributedMail/entry/src/main/config.json b/DistributedMail/entry/src/main/config.json index 73db12ec8528d2bae448f53707ebe09271ffc377..b0d3a3ce8b6c2979e8725d44a7d91361e73a1bc9 100644 --- a/DistributedMail/entry/src/main/config.json +++ b/DistributedMail/entry/src/main/config.json @@ -69,12 +69,6 @@ { "name": "ohos.permission.GET_BUNDLE_INFO" } - ], - "defPermissions": [ - { - "name": "com.huawei.maildemo.DataAbilityShellProvider.PROVIDER", - "grantMode": "system_grant" - } ] } } \ No newline at end of file diff --git a/DistributedVideoCodelab/README.md b/DistributedVideoCodelab/README.md index f3a2ae7b2988b0c14fd7b9134ab88c853df0c113..14cb9adb252b8aeaf9bfaed44e153d94d71d5cf2 100644 --- a/DistributedVideoCodelab/README.md +++ b/DistributedVideoCodelab/README.md @@ -1,29 +1,29 @@ DistributedVideoCodelab -What is it? -The DistributedVideoCodelab application is to show the cross-device migration video capability. -You can easily play a video from local or the network through the application. -You can start to play,pause,forward,backward and so on. -More than that ,you can transfer the video to other devices on the local area network (LAN) . -You can control the transferred video through the control dialog. -This example code is complete and you can learn from the beginning with us. +简介 +此应用程序展示了视频跨设备迁移的功能。 +您可以通过该应用程序轻松播放来自本地或网络的视频。 +您可以开始播放,暂停,前进,后退等。 +不仅如此,您还可以将视频迁移到局域网(LAN)上的其他设备。 +您可以通过控制对话框控制迁移的视频。 +该示例代码是一个完整的示例,您可以从头开始学习。 -Installation requirements -• Install DevEco Studio and Node.js -• Set up the DevEco Studio development environment. The DevEco Studio development environment needs to depend on the network environment. It needs to be connected to the network to ensure the normal use of the tool. The development environment can be configured according to the following two situations -1. If you can directly access the Internet, just download the HarmonyOS SDK -2. If the network cannot access the Internet directly, it can be accessed through a proxy server -• Generate secret key and apply for certificate +安装要求 +• 安装DevEco Studio和Node.js +• 设置DevEco Studio开发环境。 DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: + 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK + 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 +• 生成密钥并申请证书 -User guide -• Download this project -• Open DevEco Studio, click File> Open> Then select and open this Project -• Click Build> Build App(s)/Hap(s)>Build Debug Hap(s) to compile the hap package -• Click Run> Run 'entry' to run the hap package +用户指南 +• 下载此项目 +• 打开HUAWEI DevEco Studio,单击File> Open选择此ComponentCodelab +• 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 +• 单击Run> Run 'entry'以运行hap包 -Note -• You can choose to run the hap package on the simulator or the phone. -• If you run it on the phone, you need to configure the signature and certificate information in the project's File> Project Structure> Modules> Signing Configs. - -Licensing -Please see LICENSE for more info. \ No newline at end of file +注意 +• 您可以选择在模拟器或真机上运行hap软件包。 +• 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。 + +许可 +请参阅LICENSE文件以获得更多信息。 \ No newline at end of file diff --git a/EducationSystem/README.md b/EducationSystem/README.md index 707a05f0bb20a419274281ad7581e9936e83f551..41b43a169c34455af78f17ae2a9cc6f0083ab887 100644 --- a/EducationSystem/README.md +++ b/EducationSystem/README.md @@ -1,27 +1,28 @@ Education System -What is it? -•Distance education and multi-screen collaboration are an important scene of smart education. -•In this article, CodeLab uses a parent-child early education system to complete two comprehensive cases of distributed early education arithmetic problems and distributed puzzle games. -•It aims to help developers quickly understand the experience of HarmonyOS application development, multi-screen collaborative interaction, and distributed cross-device transfer. -•From project creation, code writing, to compilation, construction, deployment and operation. +简介 +• 远程教育和多屏幕协作是智能教育的重要场景。 +• 在本文中,CodeLab使用亲子早期教育系统来完成两个有关分布式早期教育算术问题和分布式益智游戏的综合案例。 +• 它旨在帮助开发人员快速了解HarmonyOS应用程序开发,多屏协作交互和分布式跨设备传输的经验。 +• 从项目创建、代码编写到编译、构造、部署和操作。 -Installation requirements -• Install DevEco Studio and Node.js -• Set up the DevEco Studio development environment. The DevEco Studio development environment needs to depend on the network environment. It needs to be connected to the network to ensure the normal use of the tool. The development environment can be configured according to the following two situations -1. If you can directly access the Internet, just download the HarmonyOS SDK -2. If the network cannot access the Internet directly, it can be accessed through a proxy server -• Generate secret key and apply for certificate -User guide -• Download this EducationSystem -• Open HUAWEI DevEco Studio, click File> Open to select this EducationSystem -• Click Build> Build App(s)/Hap(s)>Build Debug Hap(s) to compile the hap package -• Click Run> Run 'entry' to run the hap package +安装要求 +• 安装DevEco Studio和Node.js +• 设置DevEco Studio开发环境。 DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: + 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK + 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 +• 生成密钥并申请证书 -Note -• You can choose to run the hap package on the simulator or the phone. -• If you run it on the phone, you need to configure the signature and certificate information in the project's File> Project Structure> Modules> Signing Configs. +用户指南 +• 下载此项目 +• 打开HUAWEI DevEco Studio,单击File> Open选择此ComponentCodelab +• 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 +• 单击Run> Run 'entry'以运行hap包 -Licensing -Please see LICENSE for more info. \ No newline at end of file +注意 +• 您可以选择在模拟器或真机上运行hap软件包。 +• 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。 + +许可 +请参阅LICENSE文件以获得更多信息。 \ No newline at end of file diff --git a/HarmonyOSNewsClient/README.md b/HarmonyOSNewsClient/README.md index f1cf3626391d21565d2930aea9d088794fea3818..b35b5921d0bb0105439edb5577d20d1418db5169 100644 --- a/HarmonyOSNewsClient/README.md +++ b/HarmonyOSNewsClient/README.md @@ -1,28 +1,27 @@ -HarmonyOS News Client +HarmonyOS新闻客户端 -What is it? -The HarmonyOS news client is a simple news application. Here, -we want to show developers some common controls and components of the HarmonyOS. In addition, -we also demonstrate the cross-device migration function. -You can seamlessly transfer your FA to other devices on the local area network (LAN) to complete news sharing. -This example code is complete and you can learn from the beginning with us. +简介 +HarmonyOS新闻客户端是一个简单的新闻应用程序。 +我们想向开发人员展示HarmonyOS的一些常见控件和组件,以及跨设备协同功能。 +您可以在局域网(LAN)上的其他设备拉起FA,以完成新闻共享。 +该示例代码已完成,您可以从头开始学习。 -Installation requirements -• Install DevEco Studio and Node.js -• Set up the DevEco Studio development environment. The DevEco Studio development environment needs to depend on the network environment. It needs to be connected to the network to ensure the normal use of the tool. The development environment can be configured according to the following two situations -1. If you can directly access the Internet, just download the HarmonyOS SDK -2. If the network cannot access the Internet directly, it can be accessed through a proxy server -• Generate secret key and apply for certificate +安装要求 +• 安装DevEco Studio和Node.js +• 设置DevEco Studio开发环境。 DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: + 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK + 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 +• 生成密钥并申请证书 -User guide -• Download this News Client Project -• Open HUAWEI DevEco Studio, click File> Open> Then select and open this Project -• Click Build> Build App(s)/Hap(s)>Build Debug Hap(s) to compile the hap package -• Click Run> Run 'entry' to run the hap package +用户指南 +• 下载此项目 +• 打开HUAWEI DevEco Studio,单击File> Open选择此ComponentCodelab +• 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 +• 单击Run> Run 'entry'以运行hap包 -Note -• You can choose to run the hap package on the simulator or the phone. -• If you run it on the phone, you need to configure the signature and certificate information in the project's File> Project Structure> Modules> Signing Configs. - -Licensing -Please see LICENSE for more info. \ No newline at end of file +注意 +• 您可以选择在模拟器或真机上运行hap软件包。 +• 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。 + +许可 +请参阅LICENSE文件以获得更多信息。 \ No newline at end of file diff --git a/README.md b/README.md index 3465bc64b1b4aadc609c690a41565812b17d0004..5f0e288631be84042c3153712dad00a02ee08a74 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # codelabs 该Codelabs旨在向开发人员展示如何通过趣味场景来展示如何使用HarmonyOS能力的示例应用程序文档教程。 -注意:IDE版本及配套SDK问题可前往https://devecostudio.rnd.huawei.com/download/aide/#download查看配套的IDE、鸿蒙SDK、插件及Gradle版本。 +注意:IDE版本及配套SDK问题可前往https://devecostudio.rnd.huawei.com/download/aide/#download 查看配套的IDE、鸿蒙SDK、插件及Gradle版本。 ComponentCodelab:展示JAVA通用组件用法,链接:https://gitee.com/openharmony/codelabs/tree/master/ComponentCodelab @@ -10,7 +10,10 @@ DistributedVideoCodelab:如何使用分布式能力进行视频跨设备播放 EducationSystem:展示了分布式的早教算术题和拼图游戏的案例,链接:https://gitee.com/openharmony/codelabs/tree/master/EducationSystem - HarmonyOSNewsClient:展示了一个可以分享新闻详情页面的简易新闻客户端,链接:https://gitee.com/openharmony/codelabs/tree/master/HarmonyOSNewsClient +DistributedMail:展示了一个可以跨设备迁移和分布式文件调用的简易邮件编辑页面,链接:https://gitee.com/openharmony/codelabs/tree/master/DistributedMail + +ShoppingJs:展示了一个使用JS UI组件开发的购物应用,链接:https://gitee.com/openharmony/codelabs/tree/master/ShoppingJs +VoiceCamera:展示了一个基于分布式文件系统和AI语音识别功能开发的分布式语音照相机,链接:https://gitee.com/openharmony/codelabs/tree/master/VoiceCamera \ No newline at end of file diff --git a/ShoppingJs/README.md b/ShoppingJs/README.md index 01121a0326944d58783034c12959e37700ac1fe8..4e38501ec53ef9e35636e7cedbdddae4dba47dbd 100644 --- a/ShoppingJs/README.md +++ b/ShoppingJs/README.md @@ -1,3 +1,25 @@ # ShoppingDemoJs -ShoppingDemoJs \ No newline at end of file +简介 +本篇Codelab使用UI组件开发了一个购物应用。 +应用包含两级页面,分别是主页和商品详情页,都展示了丰富的HarmonyOS UI组件。 + +安装要求 +• 安装DevEco Studio和Node.js +• 设置DevEco Studio开发环境。 DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: + 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK + 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 +• 生成密钥并申请证书 + +用户指南 +• 下载此项目 +• 打开HUAWEI DevEco Studio,单击File> Open选择此ComponentCodelab +• 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 +• 单击Run> Run 'entry'以运行hap包 + +注意 +• 您可以选择在模拟器或真机上运行hap软件包。 +• 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。 + +许可 +请参阅LICENSE文件以获得更多信息。 \ No newline at end of file diff --git a/ShoppingJs/entry/src/main/config.json b/ShoppingJs/entry/src/main/config.json index b27fe2767e44942f3348bcdeb43c13425b1099e9..c8138665608e09ebcc5b3fa1b551de4f6b57e5dd 100644 --- a/ShoppingJs/entry/src/main/config.json +++ b/ShoppingJs/entry/src/main/config.json @@ -41,15 +41,7 @@ "description": "$string:mainability_description", "label": "codelab", "type": "page", - "launchType": "standard", - "metaData": { - "customizeData": [ - { - "name": "hwc-theme", - "value": "androidhwext:style/Theme.Emui.Light.NoTitleBar" - } - ] - } + "launchType": "standard" } ], "js": [ diff --git a/SimpleVideoCodelab/README.md b/SimpleVideoCodelab/README.md index e838a997d4a222552a6401404c43cc278f2cc553..9e6090d32c78e8f5626fa225761a008e5a03515a 100644 --- a/SimpleVideoCodelab/README.md +++ b/SimpleVideoCodelab/README.md @@ -1,27 +1,27 @@ SimpleVideoCodelab -What is it? -The SimpleVideoCodelab application is to show the simple HarmonyOS video capability. -You can easily play a video from local or the network through the application. -You can start to play,pause,forward,backward and so on. -This example code is complete and you can learn from the beginning with us. +简介 +此应用程序将展示简单的HarmonyOS视频播放功能。 +您可以通过此应用程序轻松播放来自本地或网络的视频。 +您可以控制视频开始播放、暂停、前进和后退等。 +该示例代码已完成,您可以从头开始学习。 -Installation requirements -• Install DevEco Studio and Node.js -• Set up the DevEco Studio development environment. The DevEco Studio development environment needs to depend on the network environment. It needs to be connected to the network to ensure the normal use of the tool. The development environment can be configured according to the following two situations -1. If you can directly access the Internet, just download the HarmonyOS SDK -2. If the network cannot access the Internet directly, it can be accessed through a proxy server -• Generate secret key and apply for certificate +安装要求 +• 安装DevEco Studio和Node.js +• 设置DevEco Studio开发环境。 DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: + 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK + 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 +• 生成密钥并申请证书 -User guide -• Download this Project -• Open DevEco Studio, click File> Open> Then select and open this Project -• Click Build> Build App(s)/Hap(s)>Build Debug Hap(s) to compile the hap package -• Click Run> Run 'entry' to run the hap package +用户指南 +• 下载此项目 +• 打开HUAWEI DevEco Studio,单击File> Open选择此ComponentCodelab +• 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 +• 单击Run> Run 'entry'以运行hap包 -Note -• You can choose to run the hap package on the simulator or the phone. -• If you run it on the phone, you need to configure the signature and certificate information in the project's File> Project Structure> Modules> Signing Configs. - -Licensing -Please see LICENSE for more info. \ No newline at end of file +注意 +• 您可以选择在模拟器或真机上运行hap软件包。 +• 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。 + +许可 +请参阅LICENSE文件以获得更多信息。 \ No newline at end of file diff --git a/VoiceCamera/LICENSE b/VoiceCamera/LICENSE index eb44b24a0ff113ed4b008408a3406f792bde2adb..6c25c86ac05f0cbdd95438aae07d77ed8c646aff 100644 --- a/VoiceCamera/LICENSE +++ b/VoiceCamera/LICENSE @@ -4,14 +4,36 @@ you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - + + We use Alibaba's open-source fastjson.jar. The details are as follows: + + ### License + + Fastjson is released under the [Apache 2.0 license](LICENSE). + + ``` + Copyright 1999-2021 Alibaba Group Holding Ltd. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at the following link. + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ``` + Apache License, Version 2.0 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION diff --git a/VoiceCamera/README.md b/VoiceCamera/README.md index ebcc642995fb7097d1d0267f543baf425d340f3a..e2043ba9864da61472904ff4c0dd484912203339 100644 --- a/VoiceCamera/README.md +++ b/VoiceCamera/README.md @@ -1,10 +1,10 @@ -# Distributed Voice Camera +# 分布式语音照相机 -What is it? -In this article, Codelab uses the HarmonyOS distributed file system and AI voice recognition function to develop a distributed voice camera. -Using this camera application, different devices under the same distributed network can see the photos taken by the main device in real time. -This effectively solves the pain point of the need to run back and forth to pass the mobile phone when taking pictures of each other. -In addition, the main device also supports a voice-controlled camera function, allowing you to control the camera from a distance. +简介 +在本Codelab中,使用了HarmonyOS分布式文件系统和AI语音识别功能来开发分布式语音照相机。 +使用此相机应用程序,同一分布式网络下的不同设备可以实时查看主设备拍摄的照片。 +这有效地解决了彼此拍照时需要来回传递手机的麻烦。 +此外,主设备还支持语音控制​​摄像头功能,可让您从远处控制摄像头。 -Licensing -Please see LICENSE for more info. \ No newline at end of file +许可 +请参阅LICENSE文件以获得更多信息。 \ No newline at end of file