• 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/SystemFeature/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/Resource/ResourceManager)
31  - [`International`:i18n(ArkTS)(API9)](code/SystemFeature/Internationalnation/International)
32- data
33  - [`KvStore`:Distributed Database(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/Kvstore)
34  - [`DistributedRdb`:Distributed RDB(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedRdb)
35  - [`Preferences`:Preference(ArkTS)(API9)](code/BasicFeature/DataManagement/Preferences)
36  - [`DistributedNote`:Distributed Memo (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedNote)
37- device
38  - [`Sensor`:Sensor(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Sensor)
39  - [`Vibrator`:Vibrator(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Vibrator)
40  - [`DeviceUsageStatistics`:Device Usage Statistics(ArkTS)(API9)](code/SystemFeature/DeviceUsageStatistics/DeviceUsageStatistics)
41  - [`Browser`:Browser(ArkTS)(API9)](code/BasicFeature/Web/Browser)
42- Graphics
43  - [`Window`:Window(ArkTS)(API9)](code/SystemFeature/WindowManagement/WindowManage)
44- media
45  - [`Recorder`:Recorder(ArkTS)(API9)](code/SystemFeature/Media/Recorder)
46  - [`MultiMedia`:Multi Media(ArkTS)(API9)](code/Solutions/Media/MultiMedia)
47- DFX
48  - [`FaultLogger`:Fault Logger(ArkTS)(API9)](code/BasicFeature/DFX/FaultLogger)
49  - [`Logger`:Logger(ArkTS)(API9)](code/BasicFeature/DFX/Logger)
50- Telephony
51  - [`Call`:Call(ArkTS)(API9)](code/SystemFeature/Telephony/Call)
52  - [`Message`:Message(ArkTS)(API9)](code/SystemFeature/Telephony/Message)
53  - [`RadioTech`:Radio Tech(ArkTS)(API9)](code/BasicFeature/Telephony/RadioTech)
54  - [`SimManager`:SIM Card Manager(ArkTS)(API9)](code/BasicFeature/Telephony/SimManager)
55  - [`MobileNetwork`:Cellular Network(ArkTS)(API9)](code/BasicFeature/Telephony/MobileNetwork)
56- thread
57  - [`JsWorker`:Launch a worker(API12)](code/LanguageBaseClassLibrary/ConcurrentModule)
58- CompleteApps
59  - [`KikaInput`:Lite Input Method(JS)(API10)](code/Solutions/InputMethod/KikaInput)
60  - [`FlipClock`:Flip Clock(ArkTS)(API9)](code/Solutions/Tools/FlipClock)
61- ETSUI
62  - [`DefiningPageLayoutAndConnection`:Defining Page Layout and Connection(ArkTS)(API9)](code/UI/ArkTsComponentCollection/DefiningPageLayoutAndConnection)
63  - [`MediaQuery`:Media Query (ArkTS)(API9)](code/UI/ArkTsComponentCollection/MediaQuery)
64  - [`AdaptiveCapabilities`:AdaptiveCapabilities(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
65  - [`Game2048`:2048 Game(ArkTS)(API9)](code/Solutions/Game/Game2048)
66  - [`Lottie`:Lottie(ArkTS)(API9)](code/Solutions/Game/Lottie)
67- Notification
68  - [`CustomCommonEvent`:Custom Common Event(ArkTS)(API9)](code/BasicFeature/Notification/CustomCommonEvent)
69  - [`CustomEmitter`:Custom Emitter (ArkTS)(API9)](code/BasicFeature/Notification/CustomEmitter)
70  - [`CustomNotification`:Subscribe&Send Notification (ArkTS)(API9)](code/BasicFeature/Notification/CustomNotification)
71- Network
72  - [`Http`:http Request(ArkTS)(API9)](code/BasicFeature/Connectivity/Http)
73  - [`Socket`:Socket(ArkTS)(API9)](code/BasicFeature/Connectivity/Socket)
74- Preset
75  - [`ArkTSClock`:Clock(ArkTS)(API9)](code/Solutions/Tools/ArkTSClock)
76  - [`ArkTSDistributeCalc`:Distributed Calculator(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc)
77  - [`ArkTSDistributedMusicPlayer`:Distributed Music Player (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer)
78- PackageManagement
79  - [`ZipLib`:zip&unzip(ArkTS)(API9)](code/LanguageBaseClassLibrary/ZipLib)
80- ResourcesSchedule
81  - [`Flybird`:Game(ArkTS)(API9)](code/SystemFeature/TaskManagement/Flybird)
82
83## Usage<a name="section17988202503116"></a>
84
851.  Import an independent app sample project into DevEco Studio for compilation, building, running, and debugging.
862.  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.
873.  After HAP installation and execution, you can view the execution effect of the sample on the device and then conduct debugging.
88
89## Limitations<a name="section18841871178"></a>
90
911.  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.\)
922.  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).
933.  App samples that can run on standard-system or small-system devices (as stipulated in **Readme**) must run on OpenHarmony.
94