• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# App Samples<a name="EN-US_TOPIC_0000001115464207"></a>
2
3-   [Introduction](#section1470103520301)
4-   [Content](#sectionMenu)
5-   [Usage](#section17988202503116)
6-   [Limitations](#section18841871178)
7
8## Introduction<a name="section1470103520301"></a>
9
10We 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.
11
12## Content <a name="sectionMenu"></a>
13
14- Basic
15  - [`Screenshot`:Screenshot (ArkTS)(API9)](code/SystemFeature/Media/Screenshot)
16- AppSample
17  - [`Chat`:Chat Sample(ArkTS)(API9)](code/Solutions/IM/Chat)
18- Account
19  - [`AppAccountManager`:App Account Manager (ArkTS)(API9)](code/BasicFeature/Security/AppAccountManager)
20- Communication
21  - [`RPC`:RPC Connection (ArkTS)(API9)](code/BasicFeature/Connectivity/RPC)
22  - [`Wlan`:WLAN (ArkTS)(API9)](code/SystemFeature/Connectivity/Wlan)
23- ability
24  - [`JsDistributedMusicPlayer`:Distributed Music Player(JS)(API10)](code/SuperFeature/DistributedAppDev/JsDistributedMusicPlayer)
25  - [`FormExtAbility`:Stage Form(ArkTS)(API9)](code/SuperFeature/Widget/FormExtAbility)
26  - [`MissionManager`:System Mission Manager(ArkTS)(API9)](code/SystemFeature/ApplicationModels/MissionManager)
27- common
28  - [`Clock`:Clock(JS)(API10)](code/Solutions/Tools/JsClock)
29  - [`DistributeCalc`:Distributed Calculator(JS)(API10)](code/SuperFeature/DistributedAppDev/DistributeCalc)
30  - [`ResourceManager`:Resource Manager(ArkTS)(API9)](code/BasicFeature/Internationalnation/ResourceManager)
31  - [`JsHelloWorld`:'Hello World'(JS)(API8)](common/JsHelloWorld)
32  - [`PowerManager`:System Power Manager(ArkTS)(API9)](code/SystemFeature/DeviceManagement/PowerManager)
33  - [`International`:i18n(ArkTS)(API9)](code/SystemFeature/Internationalnation/International)
34- data
35  - [`KvStore`:Distributed Database(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/Kvstore)
36  - [`DistributedRdb`:Distributed RDB(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedRdb)
37  - [`Preferences`:Preference(ArkTS)(API9)](code/BasicFeature/DataManagement/Preferences)
38  - [`DistributedNote`:Distributed Memo (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedNote)
39- device
40  - [`Sensor`:Sensor(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Sensor)
41  - [`Vibrator`:Vibrator(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Vibrator)
42  - [`DeviceUsageStatistics`:Device Usage Statistics(ArkTS)(API9)](code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics)
43  - [`Browser`:Browser(ArkTS)(API9)](code/BasicFeature/Web/Browser)
44- Graphics
45  - [`Window`:Window(ArkTS)(API9)](code/BasicFeature/WindowManagement/WindowManage)
46- media
47  - [`Recorder`:Recorder(ArkTS)(API9)](code/BasicFeature/Media/Recorder)
48  - [`MultiMedia`:Multi Media(ArkTS)(API9)](code/Solutions/Media/MultiMedia)
49- DFX
50  - [`FaultLogger`:Fault Logger(ArkTS)(API9)](code/BasicFeature/DFX/FaultLogger)
51  - [`Logger`:Logger(ArkTS)(API9)](code/BasicFeature/DFX/Logger)
52- Telephony
53  - [`Call`:Call(ArkTS)(API9)](code/BasicFeature/Telephony/Call)
54  - [`Message`:Message(ArkTS)(API9)](code/BasicFeature/Telephony/Message)
55  - [`RadioTech`:Radio Tech(ArkTS)(API9)](code/BasicFeature/Telephony/RadioTech)
56  - [`SimManager`:SIM Card Manager(ArkTS)(API9)](code/BasicFeature/Telephony/SimManager)
57  - [`MobileNetwork`:Cellular Network(ArkTS)(API9)](code/BasicFeature/Telephony/MobileNetwork)
58- thread
59  - [`JsWorker`:Launch a worker(JS)(API9)](code/LaunguageBaseClassLibrary/JsWorker)
60- CompleteApps
61  - [`KikaInput`:Lite Input Method(JS)(API10)](code/Solutions/InputMethod/KikaInput)
62  - [`FlipClock`:Flip Clock(ArkTS)(API9)](code/Solutions/Tools/FlipClock)
63- ETSUI
64  - [`Canvas`:Canvas(ArkTS)(API9)](code/UI/ArkTsComponentCollection/Canvas)
65  - [`DefiningPageLayoutAndConnection`:Defining Page Layout and Connection(ArkTS)(API9)](code/UI/ArkTsComponentCollection/DefiningPageLayoutAndConnection)
66  - [`Drag`:Drag (ArkTS)(API9)](code/UI/ArkTsComponentCollection/Drag)
67  - [`MediaQuery`:Media Query (ArkTS)(API9)](code/UI/ArkTsComponentCollection/MediaQuery)
68  - [`AdaptiveCapabilities`:AdaptiveCapabilities(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
69  - [`Game2048`:2048 Game(ArkTS)(API9)](code/Solutions/Game/Game2048)
70  - [`Lottie`:Lottie(ArkTS)(API9)](code/Solutions/Game/Lottie)
71- Notification
72  - [`CustomCommonEvent`:Custom Common Event(ArkTS)(API9)](code/BasicFeature/Notification/CustomCommonEvent)
73  - [`CustomEmitter`:Custom Emitter (ArkTS)(API9)](code/BasicFeature/Notification/CustomEmitter)
74  - [`CustomNotification`:Subscribe&Send Notification (ArkTS)(API9)](code/BasicFeature/Notification/CustomNotification)
75- Network
76  - [`Http`:http Request(ArkTS)(API9)](code/BasicFeature/Connectivity/Http)
77  - [`Socket`:Socket(ArkTS)(API9)](code/BasicFeature/Connectivity/Socket)
78- Preset
79  - [`ArkTSClock`:Clock(ArkTS)(API9)](code/Solutions/Tools/ArkTSClock)
80  - [`ArkTSDistributeCalc`:Distributed Calculator(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc)
81  - [`ArkTSDistributedMusicPlayer`:Distributed Music Player (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer)
82- PackageManagement
83  - [`ZipLib`:zip&unzip(ArkTS)(API9)](code/LaunguageBaseClassLibrary/ZipLib)
84- ResourcesSchedule
85  - [`Flybird`:Game(ArkTS)(API9)](code/BasicFeature/TaskManagement/Flybird)
86- UI
87  - [`AtomicLayout`:Atomic Layout(JS)(API8)](UI/AtomicLayout)
88  - [`Badge`:Badge(JS)(API8)](UI/Badge)
89  - [`JsAnimationStyle`:Animation Style(JS)(API8)](UI/JsAnimationStyle)
90
91## Usage<a name="section17988202503116"></a>
92
931.  Import an independent app sample project into DevEco Studio for compilation, building, running, and debugging.
942.  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.
953.  After HAP installation and execution, you can view the execution effect of the sample on the device and then conduct debugging.
96
97## Limitations<a name="section18841871178"></a>
98
991.  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.\)
1002.  If you want to run the app sample on OpenHarmony, configure the development environment by referring to  [DevEco Studio \(OpenHarmony\) User Guide](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/Readme-EN.md).
1013.  App samples that can run on standard-system or small-system devices (as stipulated in **Readme**) must run on OpenHarmony.
102