We provide a series of app samples to help you quickly get familiar with the APIs and development process of the HarmonyOS SDKs. Each app sample is an independent project in DevEco Studio. You can import an app sample into DevEco Studio and learn how to use APIs in the sample by browsing code, building the project, and installing and running the app.
- AI
- AccessibilityService
- CompleteApps
- ETSUI
eTSBuildCommonView:
Building a Common View (eTS)eTSDefiningPageLayoutAndConnection:
Defining Page Layout and Connection (eTS)eTSDrawingAndAnimation:
Drawing and Animation (eTS)ColorFilterSample:
Setting picture color (ArkTS)BorderImageSample:
Component Image Dynamic Border (ArkTS)AboutSample:
Apply About Page (ArkTS) (API9)BusinessSample:
Personal information page (ArkTS) (API9)CategoryListSample:
Category list page (ArkTS) (API9)CategorySample:
Category layout (ArkTS) (API9)GridSample:
Grid Layout (ArkTS) (API9)ListSample:
List content page (ArkTS) (API9)LoginSample:
Application login page (ArkTS) (API9)SplashScreenSample:
Application start transition page (ArkTS) (API9)
- JAVAUI
Animation:
Animation (Java)CommonLayout:
Common Layouts (Java)Components:
Components (Java)CustomComponent:
Custom Components (Java)CustomLayout:
Custom Layout (Java)Dialog:
Dialog (Java)List:
ListContainer (Java)Localization:
Time Zone and Language (Java)MultiModeInput:
Multimodal Input (Java)MultimodalEvent:
Multimodal Input Standard Event (Java)PositionLayout:
PositionLayout (Java)ProgressBar:
ProgressBar (Java)TriangleJava:
Drawing Triangles Using OpenGL (Java)
- JSUI
Image:
Basic Animation (JS & Java)JsAdaptivePortalList:
Adaptive Portal List (JS & Java)JsAdaptivePortalPage:
Multi-Device Adaptive FA Page (JS & Java)JsAdaptiveServiceWidget:
Multi-Device Adaptive Service Widget (JS & Java)JsAnimation:
Animation App (JS & Java)JsApp:
JS App (JS & Java)JsCallJava:
JS Call Java (JS & Java)JsComponents:
JS Components (JS & Java)JsFACard:
JS Service Widget Development (JS & Java)JsGallery:
Gallery App (JS & Java)JsShopping:
Shopping App (JS,Java)JsStartMode:
JS Startup Modal Configuration (JS & Java)UiComponents:
JS UI (JS & Java)UserRegistration:
User Registration (JS & Java)
- ability
AbilityConnection:
Ability Connection (Java)AbilityForm:
AbilityForm (Java)AbilityIntent:
Explicit and Implicit Intents (Java)AbilityInteraction:
Ability Interaction and Migration (Java)CommonEvent:
Common Event (Java)CustomNotification:
Custom Notification (JS)DataAbility:
Data Ability (Java)Delegator:
Ability Delegator (Java)DistributedMusicPlayer:
Distributed Music Player (Java)DistributedScheduler:
Distributed Scheduler (Java)ForegroundService:
Foreground Service (Java)Fraction:
Fraction (Java)Idl:
IDL (Java)Intent:
Intent (Java)IntentAgent:
IntentAgent (Java)Notification:
Notification (Java)PageAbility:
Page Ability (Java)Pasteboard:
Pasteboard (Java)ServiceAbility:
Service Ability (Java)
- common
- data
- device
- media
- native
- network
- security
- thread
- Import an app sample project into DevEco Studio for compilation, building, running, and debugging.
- Some app 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 app sample on the device and then conduct debugging.
- Before installing and running an app 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 a sample on HarmonyOS, configure the development environment by referring to HUAWEI DevEco Studio User Guide.
- App samples that can run on standard-system or small-system devices (as stipulated in Readme) must run on OpenHarmony, whereas those that can run on large-system devices must run on HarmonyOS.
- For details about all app samples running on OpenHarmony, see the app_samples repository in the OpenHarmony community.
- HarmonyOS scenario-specific app samples: HarmonyOS codelabs
- OpenHarmony basic app samples: OpenHarmony app_samples
- OpenHarmony scenario-specific app samples: OpenHarmony codelabs