• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# App Samples<a name="EN-US_TOPIC_0000001115464207"></a>
2
3-   [Introduction](#section1470103520301)
4-   [Usage](#section17988202503116)
5-   [Limitations](#section18841871178)
6-   [Repositories Involved](#section741114082513)
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  - [`Container`:ArrayList(eTS)(API8)](Basic/Container)
16  - [`Screenshot`:Screenshot (eTS)(API9)](Basic/Screenshot)
17- AppSample
18  - [`Chat`:Chat Sample(eTS)(API8)](AppSample/Chat)
19  - [`Shopping`:Shopping Sample(eTS)(API8)](AppSample/Shopping)
20- Account
21  - [`AppAccountManager`:App Account Manager (eTS)(API8)](Account/AppAccountManager)
22  - [`DistributeAccount`:Distributed Account(eTS)(API8)](Account/DistributeAccount)
23- Communication
24  - [`RPC`:RPC Connection (eTS)(API8)](Communication/RPC)
25  - [`Wlan`:WLAN (eTS)(API8)](Communication/Wlan)
26- ability
27  - [`DMS`:Distributed Demo(eTS)(API8)](ability/DMS)
28  - [`JsDistributedMusicPlayer`:Distributed Music Player(JS)(API7)](ability/JsDistributedMusicPlayer)
29  - [`DataAbility`:Data Ability(eTS)(API8)](ability/DataAbility)
30  - [`ServiceAbility`:Service Ability(eTS)(API8)](ability/ServiceAbility)
31  - [`StageCallAbility`:Stage Call Ability(eTS)(API9)](ability/StageCallAbility)
32  - [`FormAbility`:Form Ability (JS)(API8)](ability/FormAbility)
33  - [`FormExtAbility`:Stage Form(eTS JS)(API9)](ability/FormExtAbility)
34  - [`FormLauncher`:Form Launcher(eTS)(API8)](ability/FormLauncher)
35  - [`ServiceExtAbility`:StageExtAbility Creation(eTS)(API9)](ability/ServiceExtAbility)
36  - [`DistributedGraffiti`:Distributed Graffiti(eTS)(API8)](ability/DistributedGraffiti)
37  - [`MissionManager`:System Mission Manager(eTS)(API9)](ability/MissionManager)
38- common
39  - [`AirQuality`:Air Quality(JS)(API8)](common/AirQuality)
40  - [`Clock`:Clock(JS)(API8)](common/Clock)
41  - [`DistributeCalc`:Distributed Calculator(JS)(API7)](common/DistributeCalc)
42  - [`ECG`:ECG(JS)(API8)](common/ECG)
43  - [`Notification`:Botification (eTS)(API8)](common/Notification)
44  - [`ResourceManager`:Resource Manager(eTS)(API8)](common/ResourceManager)
45  - [`Runninglock`:Runninglock(eTS)(API8)](common/Runninglock)
46  - [`Flashlight`:Flashlight(JS)(API8)](common/Flashlight)
47  - [`JsHelloWorld`:'Hello World'(JS)(API8)](common/JsHelloWorld)
48  - [`PowerManager`:System Power Manager(eTS)(API8)](common/PowerManager)
49  - [`International`:i18n(eTS)(API8)](common/International)
50- data
51  - [`KvStore`:Distributed Database(eTS)(API8)](data/Kvstore)
52  - [`LiteStorage`:Lite Storage(eTS)(API8)](data/LiteStorage)
53  - [`Rdb`:Relational Database(eTS)(API8)](data/Rdb)
54  - [`DDMQuery`:DDMQuery(eTS)(API8)](data/DDMQuery)
55  - [`DistributedRdb`:Distributed RDB(eTS)(API8)](data/DistributedRdb)
56  - [`Preferences`:Preference(eTS)(API9)](data/Preferences)
57  - [`DistributedNote`:Distributed Memo (eTS)(API9)](data/DistributedNote)
58- device
59  - [`DeviceManager`:Device Manager(eTS)(API8)](device/DeviceManager)
60  - [`Sensor`:Sensor(eTS)(API8)](device/Sensor)
61  - [`Vibrator`:Vibrator(eTS)(API8)](device/Vibrator)
62  - [`DeviceUsageStatistics`:Device Usage Statistics(eTS)(API8)](device/DeviceUsageStatistics)
63  - [`Browser`:Browser(eTS)(API9)](device/Browser)
64- Graphics
65  - [`JsWebGL`:WebGL(JS)(API8)](Graphics/JsWebGL)
66  - [`Window`:Window(eTS)(API9)](Graphics/Window)
67- media
68  - [`JsAudioPlayer`:Audio Player(JS)(API8)](media/JsAudioPlayer)
69  - [`JsVideo`:Video Player(JS)(API8)](media/JsVideo)
70  - [`Recorder`:Recorder(eTS)(API8)](media/Recorder)
71  - [`MultiMedia`:Multi Media(eTS)(API9)](media/MultiMedia)
72  - [`VideoPlayer`:Video Player(eTS)(API9)](media/VideoPlayer)
73  - [`JsRecorder`:Recorder(JS)(API8)](media/JSRecorder)
74- DFX
75  - [`JsDotTest`:Dot Test(JS)(API8)](DFX/JsDotTest)
76  - [`FaultLogger`:Faulter Logger(eTS)(API8)](DFX/FaultLogger)
77  - [`Logger`:Logger(eTS)(API9)](DFX/Logger)
78- Telephony
79  - [`Call`:Call(eTS)(API8)](Telephony/Call)
80  - [`Message`:Message(eTS)(API8)](Telephony/Message)
81  - [`RadioTech`:Radio Tech(eTS)(API8)](Telephony/RadioTech)
82  - [`SimManager`:SIM Card Manager(eTS)(API8)](Telephony/SimManager)
83  - [`MobileNetwork`:Cellular Network(eTS)(API9)](Telephony/MobileNetwork)
84- thread
85  - [`JsWorker`:Launch a worker(JS)(API8)](thread/JsWorker)
86- CompleteApps
87  - [`KikaInput`:Lite Input Method(JS)(API9)](CompleteApps/KikaInput)
88  - [`AstronautsGame`:A Game(C++)](CompleteApps/AstronautsGame)
89  - [`FlipClock`:Flip Clock(eTS)(API8)](CompleteApps/FlipClock)
90- EngineeringCapability
91  - [`Npm`:npm's usage (eTS)(API9)](EngineeringCapability/Npm)
92- ETSUI
93  - [`Canvas`:Canvas(eTS)(API8)](ETSUI/Canvas)
94  - [`CustomComponent`:Custom Component(eTS)(API8)](ETSUI/CustomComponent)
95  - [`Process`:Process (eTS)(API8)](ETSUI/Process)
96  - [`BuildCommonView`:Build Common View (eTS)(API8)](ETSUI/BuildCommonView)
97  - [`DefiningPageLayoutAndConnection`:Defining Page Layout and Connection(eTS)(API8)](ETSUI/DefiningPageLayoutAndConnection)
98  - [`Drag`:Drag (eTS)(API8)](ETSUI/Drag)
99  - [`Component`:eTS Component Test Demo(eTS)(API8)](ETSUI/Component)
100  - [`ArkUIAnimation`:Animation(eTS)(API8)](ETSUI/ArkUIAnimation)
101  - [`MediaQuery`:Media Query (eTS)(API8)](ETSUI/MediaQuery)
102  - [`XComponent`:XComponent(eTS)(API8)](ETSUI/XComponent)
103  - [`MouseEvent`:Mouse Event (eTS)(API8)](ETSUI/MouseEvent)
104  - [`Web`:Web(eTS)(API8)](ETSUI/Web)
105  - [`Gallery`:Gallery (eTS)(API8)](ETSUI/Gallery)
106  - [`BringApp`:Bring App (eTS)(API8)](ETSUI/BringApp)
107  - [`AdaptiveCapabilities`:AdaptiveCapabilities(eTS)(API9)](ETSUI/AdaptiveCapabilities)
108  - [`Game2048`:2048 Game(eTS)(API9)](ETSUI/Game2048)
109  - [`Lottie`:Lottie(eTS)(API8)](ETSUI/Lottie)
110  - [`TransitionAnimation`:Transition Animation (eTS)(API9)](ETSUI/TransitionAnimation)
111- FileManager
112  - [`Environment`:Environment (eTS)(API8)](FileManager/Environment)
113  - [`FileIo`:File IO(eTS)(API8)](FileManager/FileIo)
114- Native
115  - [`NativeAPI`:NativeAPI(eTS)(API8)](Native/NativeAPI)
116- Notification
117  - [`CommonEvent`:Common Event(eTS)(API8)](Notification/CommonEvent)
118  - [`Emitter`:Emitter (eTS)(API8)](Notification/Emitter)
119  - [`AlarmClock`:Background Alarm Clock (eTS)(API8)](Notification/AlarmClock)
120  - [`Notification`:Subscribe&Send Notification (eTS)(API9)](Notification/Notification)
121- Network
122  - [`Http`:http Request(eTS)(API8)](Network/Http)
123  - [`Socket`:Socket(eTS)(API8)](Network/Socket)
124- Preset
125  - [`Clock`:Clock(eTS)(API9)](Preset/Clock)
126  - [`FlashLight`:Flash Light(eTS)(API8)](Preset/FlashLight)
127  - [`DistributeCalc`:Distributed Calculator(eTS)(API8)](Preset/DistributeCalc)
128  - [`AirQuality`:Air Quality (eTS)(API9)](Preset/AirQuality)
129  - [`DistributedMusicPlayer`:Distributed Music Player (eTS)(API9)](Preset/DistributedMusicPlayer)
130- PackageManagement
131  - [`ZipLib`:zip&unzip(eTS)(API9)](PackageManagement/ZipLib)
132- ResourcesSchedule
133  - [`Flybird`:Game(eTS)(API9)](ResourcesSchedule/Flybird)
134  - [`BackgroundTaskManager`:Background Task Manager(eTS)(API8)](ResourcesSchedule/BackgroundTaskManager)
135- UI
136  - [`AtomicLayout`:Atomic Layout(JS)(API8)](UI/AtomicLayout)
137  - [`Badge`:Badge(JS)(API8)](UI/Badge)
138  - [`International`:i18n(JS)(API8)](UI/International)
139  - [`JsFA`:FA Demo(JS)(API8)](UI/JsFA)
140  - [`JsShopping`:Shopping Demo(JS)(API8)](UI/JsShopping)
141  - [`JSMenu`:Menu(JS)(API8)](UI/JSMenu)
142  - [`JSUICustomComponent`:UI Custom Component(JS)(API8)](UI/JSUICustomComponent)
143  - [`JsAnimation`:Animation(JS)(API8)](UI/JsAnimation)
144  - [`JsAnimationStyle`:Animation Style(JS)(API8)](UI/JsAnimationStyle)
145  - [`JsBasicComponents`:Basic Components(JS)(API8)](UI/JsBasicComponents)
146  - [`JsBrightness`:Brightness(JS)(API8)](UI/JsBrightness)
147  - [`JsCanvas`:Canvas(JS)(API8)](UI/JsCanvas)
148  - [`JsDevice`:Device Info(JS)(API8)](UI/JsDevice)
149  - [`JsDialog`:Dialog(JS)(API8)](UI/JsDialog)
150  - [`JsGrid`:Grid Layout(JS)(API8)](UI/JsGrid)
151  - [`JsList`:List(JS)(API8)](UI/JsList)
152  - [`JsPanel`:Panel(JS)(API8)](UI/JsPanel)
153  - [`JsRouter`:Router(JS)(API8)](UI/JsRouter)
154  - [`JsSvg`:SVG(JS)(API8)](UI/JsSvg)
155  - [`JsTimer`:Timer(JS)(API8)](UI/JsTimer)
156  - [`Picker`:Picker (JS)(API8)](UI/Picker)
157  - [`Popup`:Popup (JS)(API8)](UI/Popup)
158  - [`RefreshContainer`:Refresh Container(JS)(API8)](UI/RefreshContainer)
159  - [`Slider`:Slider(JS)(API8)](UI/Slider)
160  - [`Stack`:Stack(JS)(API8)](UI/Stack)
161  - [`StepNavigator`:Step Navigator(JS)(API8)](UI/StepNavigator)
162  - [`Swiper`:Swiper(JS)(API8)](UI/Swiper)
163  - [`Tabs`:Tabs(JS)(API8)](UI/Tabs)
164  - [`Toolbar`:Toolbar (JS)(API8)](UI/Toolbar)
165  - [`chart`:Chart(JS)(API8)](UI/chart)
166  - [`JsAdaptivePortalList`:Adaptive Portal List(JS)(API8)](UI/JsAdaptivePortalList)
167  - [`JsAdaptivePortalPage`:Adaptive Portal Page(JS)(API8)](UI/JsAdaptivePortalPage)
168  - [`JsImage`:Basic Image(JS)(API8)](UI/JsImage)
169  - [`JsGallery`:Gallery Demo(JS)(API8)](UI/JsGallery)
170  - [`JSComponments`:Js Component (JS)(API8)](UI/JSComponments)
171  - [`JsUserRegistration`:User Registration(JS)(API8)](UI/JsUserRegistration)
172  - [`JsAdaptiveServiceWidget`:Adaptive Service Widget(JS)(API8)](UI/JsAdaptiveServiceWidget)
173  - [`JsAnimator`:Animator(JS)(API8)](UI/JsAnimator)
174- Util
175  - [`UtilBase64Codec`:Base64 Codec(eTS)(API8)](Util/UtilBase64Codec)
176  - [`UtilScope`:Scope(eTS)(API8)](Util/UtilScope)
177  - [`UtilStringCodec`:String Codec(eTS)(API8)](Util/UtilStringCodec)
178  - [`UtilLruBuffer`:Buffer(eTS)(API8)](Util/UtilLruBuffer)
179  - [`UtilRationalNumber`:Rational Number(eTS)(API8)](Util/UtilRationalNumber)
180  - [`UtilTypeCheck`:Type Check(eTS)(API8)](Util/UtilTypeCheck)
181  - [`UtilUrlString`:URL String Parser (eTS)(API8)](Util/UtilUrlString)
182  - [`XmlTextConvert`:xml->text Convertor(eTS)(API8)](Util/XmlTextConvert)
183
184## Usage<a name="section17988202503116"></a>
185
1861.  Import an independent app sample project into DevEco Studio for compilation, building, running, and debugging.
1872.  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.
1883.  After HAP installation and execution, you can view the execution effect of the sample on the device and then conduct debugging.
189
190## Limitations<a name="section18841871178"></a>
191
1921.  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.\)
1932.  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).
1943.  App samples that can run on standard-system or small-system devices (as stipulated in **Readme**) must run on OpenHarmony.
195