mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-27 02:30:43 +00:00
3e7db3f774
Merge pull request !3174 from yuyaozhi/master |
||
---|---|---|
.gitee | ||
code | ||
.gitattributes | ||
changelog.md | ||
CodeCommitChecklist.md | ||
LICENSE | ||
OAT.xml | ||
ohosTestTemplate.md | ||
README_zh.md | ||
README.md | ||
releasenote.md | ||
SampleReadTemplate.md |
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 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.
Content
- Basic
- AppSample
- Account
- Communication
- ability
- common
- data
- device
- Graphics
- media
- DFX
- Telephony
- thread
- CompleteApps
- ETSUI
- Notification
- Network
- Preset
- PackageManagement
- ResourcesSchedule
- UI
Usage
- Import an independent app sample project into DevEco Studio for compilation, building, running, and debugging.
- 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.
- After HAP installation and execution, you can view the execution effect of the sample on the device and then conduct debugging.
Limitations
- 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.
- If you want to run the app sample on OpenHarmony, configure the development environment by referring to DevEco Studio
OpenHarmony
User Guide. - App samples that can run on standard-system or small-system devices (as stipulated in Readme) must run on OpenHarmony.