Go to file
gaohui 1dd7f8c1f3 add sample for CustomComponent
Signed-off-by: gaohui <gaohui34@huawei.com>
2021-07-06 22:47:26 +08:00
ability !39 【HarmonyOS】新增DistributedCommonEvent示例 2021-07-06 14:28:12 +00:00
AI/AIFunctionSet add sample for AIFunctionSet 2021-07-06 18:27:13 +08:00
common 个别编译失败问题,label整改,ToastDialog.setText整改 2021-06-29 17:11:54 +08:00
data/DistributedPictures add sample for DistributedPictures 2021-07-06 21:53:51 +08:00
device add sample for Compass 2021-07-06 20:25:54 +08:00
media add sample for Audio 2021-07-06 21:01:54 +08:00
network add sample for NFC 2021-07-06 21:13:14 +08:00
security adjust readme 2021-07-06 21:54:00 +08:00
thread 个别编译失败问题,label整改,ToastDialog.setText整改 2021-06-29 17:11:54 +08:00
UI add sample for CustomComponent 2021-07-06 22:47:26 +08:00
.gitattributes update OpenHarmony 2.0 Canary 2021-06-02 12:34:30 +08:00
.gitignore update OpenHarmony 2.0 Canary 2021-06-02 12:34:30 +08:00
LICENSE update OpenHarmony 2.0 Canary 2021-06-02 12:34:30 +08:00
OAT.xml update OpenHarmony 2.0 Canary 2021-06-02 12:34:30 +08:00
README_zh.md 增加Sample运行到HarmonyOs和OpenHarmony不同SDK如何配置开发环境的参考说明链接 2021-06-05 14:40:35 +08:00
README.md 增加Sample运行到HarmonyOs和OpenHarmony不同SDK如何配置开发环境的参考说明链接 2021-06-05 14:40:35 +08:00

App Samples

Introduction

We provide a series of app samples to help you quickly get familiar with the APIs and app development process of the HarmonyOS and OpenHarmony SDKs. Each app sample is an independent project in DevEco Studio. You can import a project into DevEco Studio to learn how to use APIs in the sample by browsing code, building the project, and installing and running the app.

Usage

  1. Import an independent app sample project into DevEco Studio for compilation, building, running, and debugging.
  2. Some samples contain multiple modules. You can compile and build a single module to generate a HAP file or compile and build the entire project to generate multiple HAP files.
  3. After HAP installation and execution, you can view the execution effect of the sample on the device and then conduct debugging.

Limitations

  1. Before installing and running the sample, check the deviceType field in the config.json file to obtain the device types supported by the sample. You can modify this field to enable the sample to run on your target device. The **config.json** file is generally stored in the **entry/src/main** directory, which may be different depending on the samples.
  2. If you want to run the app sample on HarmonyOS, configure the development environment by referring to HUAWEI DevEco Studio User Guide. If you want to run the app sample on OpenHarmony, configure the development environment by referring to DevEco Studio OpenHarmony User Guide.
  3. The following app samples can run on OpenHarmony, and other app samples can run only on HarmonyOS:
    • common/Clock
    • common/JsHelloWorld

Repositories Involved

  1. applications_sample_camera
  2. applications_sample_wifi_iot