• Home
Name Date Size #Lines LOC

..--

CompleteApps/KikaInput/12-May-2024-3,1832,807

ability/JsDistributedMusicPlayer/12-May-2024-1,6101,365

code/12-May-2024-211,309184,521

common/12-May-2024-2,0431,735

.gitattributesD12-May-2024631 1615

.gitignoreD12-May-2024115 129

CodeCommitChecklist.mdD12-May-20247.1 KiB173141

LICENSED12-May-202413.6 KiB218172

OAT.xmlD12-May-20246.1 KiB8125

README.mdD12-May-202412.3 KiB195185

README_zh.mdD12-May-202419.7 KiB424395

SampleReadTemplate.mdD12-May-20243.1 KiB4426

changelog.mdD12-May-20245.7 KiB9283

releasenote.mdD12-May-2024314 107

README.md

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

README_zh.md

1# app_samples部件<a name="ZH-CN_TOPIC_0000001115464207"></a>
2
3## 简介<a name="section1470103520301"></a>
4
5为帮助开发者快速熟悉OpenHarmony SDK所提供的API和应用开发流程,我们提供了一系列的应用示例,即Sample。每一个应用示例都是一个独立的DevEco Studio工程项目,开发者可以将工程导入到DevEco Studio开发工具,通过浏览代码、编译工程、安装和运行应用示例来了解应用示例中涉及API的使用方法。
6
7**编码规范**
8
9<!--
10
11【示例贡献温馨提示】感谢您关注OpenHarmony,如果您希望提交代码样例/示例/Demo,请参考知识体系的[《如何共建开发样例》](https://gitee.com/openharmony-sig/knowledge/blob/master/docs/co-construct_demos/README_zh.md),首先提交到SIG(兴趣组)仓,知识体系SIG仓中的提交也是有效贡献。再次感谢您的关注!)
12
13-->
14
15<table width="990" border="0" cellpadding="0" cellspacing="0" style='border-collapse:collapse;table-layout:fixed;'>
16 <tr height="18" style='height:13.50pt;'>
17  <td width="330"><a href="CodeCommitChecklist.md#社区共建Sample合入要求" target="_blank">社区共建Sample合入要求</a></td>
18  <td width="330"><a href="CodeCommitChecklist.md#代码规范" target="_blank">代码规范</a></td>
19  <td width="330"><a href="CodeCommitChecklist.md#readme编写规范" target="_blank">README编写规范</a></td>
20 </tr>
21 <tr height="18" style='height:13.50pt;'>
22  <td width="330"><a href="CodeCommitChecklist.md#ui自动化用例编写规范" target="_blank">UI自动化用例编写规范</a></td>
23  <td width="330"><a href="CodeCommitChecklist.md#工程结构规范" target="_blank">工程结构规范</a></td>
24  <td width="330"><a href="CodeCommitChecklist.md#pr提交格式规范" target="_blank">PR提交格式规范</a></td>
25 </tr>
26</table>
27
28**架构组成**
29
30<table  width="990" border="0" cellpadding="0" cellspacing="0" style='border-collapse:collapse;table-layout:fixed;'>
31 <tr height="18" style='height:13.50pt;'>
32  <td width="140" x:str><strong>一级分类</strong></td>
33  <td width="170" x:str><strong>子分类</strong></td>
34  <td width="680" colspan="4" align="center" x:str><strong>应用示例</strong></td>
35 </tr>
36 <tr height="18" style='height:13.50pt;'>
37  <td width="140" align="center" rowspan="2" style='height:27.00pt' x:str><strong>UI</strong></td>
38  <td width="170" x:str><strong>声明式开发范式</strong></td>
39  <td width="170" x:str><a href="code/UI/ArkTsComponentClollection/ComponentCollection">ArkTS组件集</a></td>
40  <td width="170" x:str><a href="code/UI/ArkTsComponentClollection/MediaQuery">媒体查询</a></td>
41  <td width="170"></td>
42  <td width="170"></td>
43 </tr>
44 <tr height="18" style='height:13.50pt;'>
45  <td x:str><strong>类Web开发范式</strong></td>
46  <td x:str><a href="code/UI/JsComponentClollection/JsComponentCollection">Js组件集</a></td>
47  <td ></td>
48  <td ></td>
49  <td ></td>
50 </tr>
51 <tr height="18" style='height:13.50pt;'>
52  <td height="270" align="center" rowspan="19" style='height:202.50pt' x:str><strong>基础特性</strong></td>
53  <td x:str><strong>应用模型</strong></td>
54  <td x:str><a href="code/BasicFeature/ApplicationModels/StageModel">Stage模型</a></td>
55  <td x:str><a href="code/BasicFeature/ApplicationModels/AbilityStartMode">Ability的启动方式</a></td>
56  <td x:str><a href="code/BasicFeature/ApplicationModels/CustomShare">使用want分享数据</a></td>
57  <td ></td>
58 </tr>
59 <tr height="18" style='height:13.50pt;'>
60  <td x:str><strong>通知</strong></td>
61  <td x:str><a href="code/BasicFeature/Notification/CustomEmitter">自定义Emitter</a></td>
62  <td x:str><a href="code/BasicFeature/Notification/CustomNotification">自定义通知</a></td>
63  <td x:str><a href="code/BasicFeature/Notification/CustomCommonEvent">公共事件的订阅和发布</a></td>
64  <td ></td>
65 </tr>
66 <tr height="18" style='height:13.50pt;'>
67  <td x:str><strong>窗口管理</strong></td>
68  <td x:str><a href="code/BasicFeature/WindowManagement/WindowManage">窗口管理</a></td>
69  <td ></td>
70  <td ></td>
71  <td ></td>
72 </tr>
73 <tr height="18" style='height:13.50pt;'>
74  <td x:str><strong>Web</strong></td>
75  <td x:str><a href="code/BasicFeature/Web/Browser">浏览器</a></td>
76  <td x:str><a href="code/BasicFeature/Web/RunJsInWeb">JS注入与执行</a></td>
77  <td ></td>
78  <td ></td>
79 </tr>
80 <tr height="18" style='height:13.50pt;'>
81  <td rowspan="2" x:str><strong>媒体</strong></td>
82  <td x:str><a href="code/BasicFeature/Media/Image">图片显示及处理</a></td>
83  <td x:str><a href="code/BasicFeature/Media/VideoShow">视频播放</a></td>
84  <td x:str><a href="code/BasicFeature/Media/GamePuzzle">图片裁剪与分割</a></td>
85  <td ></td>
86 </tr>
87 <tr height="18" style='height:13.50pt;'>
88  <td x:str><a href="code/BasicFeature/Media/Recorder">录音机</a></td>
89  <td x:str><a href="code/BasicFeature/Media/QRCodeScan">二维码扫描</a></td>
90  <td ></td>
91  <td ></td>
92 </tr>
93 <tr height="18" style='height:13.50pt;'>
94  <td x:str><strong>安全</strong></td>
95  <td x:str><a href="code/BasicFeature/Security/Cipher">加解密</a></td>
96  <td ><a href="code/BasicFeature/Security/AppAccountManager">应用账号管理</a></td>
97  <td ></td>
98  <td ></td>
99 </tr>
100 <tr height="18" style='height:13.50pt;'>
101  <td x:str><strong>网络与连接</strong></td>
102  <td x:str><a href="code/BasicFeature/Connectivity/Http">Http</a></td>
103  <td x:str><a href="code/BasicFeature/Connectivity/RPC">RPC通信</a></td>
104  <td ></td>
105  <td ></td>
106 </tr>
107 <tr height="18" style='height:13.50pt;'>
108  <td x:str><strong>数据管理</strong></td>
109  <td x:str><a href="code/BasicFeature/DataManagement/Preferences">首选项</a></td>
110  <td ></td>
111  <td ></td>
112  <td ></td>
113 </tr>
114 <tr height="18" style='height:13.50pt;'>
115  <td x:str><strong>文件管理</strong></td>
116  <td x:str><a href="code/BasicFeature/FileManagement/FileManager">文件管理</a></td>
117  <td x:str><a href="code/BasicFeature/FileManagement/MediaCollections">媒体管理合集</a></td>
118  <td ></td>
119  <td ></td>
120 </tr>
121 <tr height="18" style='height:13.50pt;'>
122  <td rowspan="2" x:str><strong>设备管理</strong></td>
123  <td x:str><a href="code/BasicFeature/DeviceManagement/USBManager">USB管理</a></td>
124  <td x:str><a href="code/BasicFeature/DeviceManagement/Location">位置服务</a></td>
125  <td x:str><a href="code/BasicFeature/DeviceManagement/ScreenDetector">屏幕探测</a></td>
126  <td x:str><a href="code/BasicFeature/DeviceManagement/Vibrator">振动</a></td>
127 </tr>
128 <tr height="18" style='height:13.50pt;'>
129  <td x:str><a href="code/BasicFeature/DeviceManagement/Sensor">传感器</a></td>
130  <td ></td>
131  <td ></td>
132 </tr>
133 <tr height="18" style='height:13.50pt;'>
134  <td rowspan="2" x:str><strong>电话服务</strong></td>
135  <td x:str><a href="code/BasicFeature/Telephony/Call">拨打电话</a></td>
136  <td x:str><a href="code/BasicFeature/Telephony/SimManager">SIM卡管理</a></td>
137  <td x:str><a href="code/BasicFeature/Telephony/Message">短信</a></td>
138  <td x:str><a href="code/BasicFeature/Telephony/Contact">联系人</a></td>
139 </tr>
140 <tr height="18" style='height:13.50pt;'>
141  <td x:str><a href="code/BasicFeature/Telephony/Observer">网络和Sim卡状态订阅</a></td>
142  <td x:str><a href="code/BasicFeature/Telephony/MobileNetwork">蜂窝数据</a></td>
143  <td x:str><a href="code/BasicFeature/Telephony/RadioTech">网络搜索</td>
144  <td ></td>
145 </tr>
146 <tr height="18" style='height:13.50pt;'>
147  <td rowspan="1" x:str><strong>任务管理</strong></td>
148  <td x:str><a href="code/BasicFeature/TaskManagement/ReminderAgentManager">后台代理提醒</a></td>
149  <td x:str><a href="code/BasicFeature/TaskManagement/WorkScheduler">延迟任务调度</a></td>
150  <td x:str><a href="code/BasicFeature/TaskManagement/Flybird">资源调度接口使用</a></td>
151  <td ></td>
152 </tr>
153 <tr height="18" style='height:13.50pt;'>
154  <td x:str><strong>设备信息统计</strong></td>
155  <td x:str><a href="code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics">设备使用信息统计</a></td>
156  <td ></td>
157  <td ></td>
158  <td ></td>
159 </tr>
160 <tr height="18" style='height:13.50pt;'>
161  <td x:str><strong>DFX</strong></td>
162  <td x:str><a href="code/BasicFeature/DFX/Debug">Debug调试</a></td>
163  <td ><a href="code/BasicFeature/DFX/DotTest">测试打点</a></td>
164  <td ><a href="code/BasicFeature/DFX/FaultLogger">故障日志获取</a></td>
165  <td ><a href="code/BasicFeature/DFX/Logger">日志打印</a></td>
166 </tr>
167 <tr height="18" style='height:13.50pt;'>
168  <td x:str><strong>国际化</strong></td>
169  <td x:str><a href="code/BasicFeature/Internationalnation/ResourceManager">资源管理</a></td>
170  <td ></td>
171  <td ></td>
172  <td ></td>
173 </tr>
174 <tr height="18" style='height:13.50pt;'>
175  <td x:str><strong>IDL</strong></td>
176  <td x:str><a href="code/BasicFeature/IDL/AbilityConnectServiceExtension">Ability与ServiceExtensionAbility通信</a></td>
177  <td x:str></td>
178  <td x:str></td>
179  <td x:str></td>
180 </tr>
181 <tr height="18" style='height:13.50pt;'>
182  <td height="90" align="center" rowspan="9" style='height:67.50pt;' x:str><strong>系统特性</strong></td>
183  <td rowspan="2" x:str><strong>应用模型</strong></td>
184  <td x:str><a href="code/SystemFeature/ApplicationModels/Launcher">仿桌面应用</a></td>
185  <td x:str><a href="code/SystemFeature/ApplicationModels/MissionManager">任务管理</a></td>
186  <td x:str><a href="code/SystemFeature/ApplicationModels/StaticSubscriber">静态订阅</a></td>
187  <td x:str><a href="code/SystemFeature/ApplicationModels/AccessibilityExtAbility">无障碍扩展</a></td>
188 </tr>
189 <tr height="18" style='height:13.50pt;'>
190  <td x:str><a href="code/SystemFeature/ApplicationModels/EnterpriseAdminExtensionAbility">企业设备管理扩展</a></td>
191  <td ></td>
192  <td ></td>
193  <td ></td>
194 </tr>
195 <tr height="18" style='height:13.50pt;'>
196  <td x:str><strong>媒体</strong></td>
197  <td x:str><a href="code/SystemFeature/Media/Screenshot">截屏</a></td>
198  <td x:str><a href="code/SystemFeature/Media/ScreenRecorder">录屏</a></td>
199  <td ></td>
200  <td ></td>
201 </tr>
202 </tr>
203  <tr height="18" style='height:13.50pt;'>
204  <td x:str><strong>安全</strong></td>
205  <td x:str><a href="code/SystemFeature/Security/AbilityAccessCtrl">应用访问权限控制</a></td>
206  <td ></td>
207  <td ></td>
208  <td ></td>
209 </tr>
210 <tr height="18" style='height:13.50pt;'>
211  <td x:str><strong>窗口管理</strong></td>
212  <td x:str><a href="code/SystemFeature/WindowManagement/WindowExtAbility">窗口扩展</a></td>
213  <td ></td>
214  <td ></td>
215  <td ></td>
216 </tr>
217 <tr height="18" style='height:13.50pt;'>
218  <td x:str><strong>网络与连接</strong></td>
219  <td x:str><a href="code/SystemFeature/Connectivity/Wlan">Wlan</a></td>
220  <td x:str><a href="code/SystemFeature/Connectivity/Bluetooth">蓝牙</a></td>
221  <td ></td>
222  <td ></td>
223 </tr>
224 <tr height="18" style='height:13.50pt;'>
225  <td x:str><strong>数据管理</strong></td>
226  <td x:str><a href="code/SystemFeature/DataManagement/CrossAppDataShare">系统应用跨应用数据共享</a></td>
227  <td ></td>
228  <td ></td>
229  <td ></td>
230 </tr>
231 <tr height="18" style='height:13.50pt;'>
232  <td x:str><strong>设备管理</strong></td>
233  <td x:str><a href="code/SystemFeature/DeviceManagement/PowerManager">系统电源管理</a></td>
234  <td x:str><a href="code/SystemFeature/DeviceManagement/StorageStatistic">存储空间统计</a></td>
235  <td x:str><a href="code/SystemFeature/DeviceManagement/Screen">屏幕属性</a></td>
236  <td ></td>
237 </tr>
238 <tr height="18" style='height:13.50pt;'>
239  <td x:str><strong>国际化</strong></td>
240  <td x:str><a href="code/SystemFeature/Internationalnation/International">时区和语言设置</a></td>
241  <td ></td>
242  <td ></td>
243  <td ></td>
244 <tr height="18" style='height:13.50pt;'>
245  <td height="90" align="center" rowspan="5" style='height:67.50pt;' x:str><strong>关键特性</strong></td>
246  <td rowspan="2" x:str><strong>一次开发,多端部署</strong></td>
247  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities">ArkTS一多能力集合</a></td>
248  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/JsAdaptiveCapabilities">Js一多能力集合(Js)(API 8)</a></td>
249  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/Weather">入门示例:天气应用</a></td>
250  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/HealthyDiet">典型页面场景:健康饮食</a></td>
251 </tr>
252 <tr height="18" style='height:13.50pt;'>
253  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/AppMarket">典型页面场景:应用市场首页</a></td>
254  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/MusicAlbum">典型页面场景:音乐专辑页</a></td>
255  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/Settings">典型页面场景:设置应用页面</a></td>
256  <td ></td>
257 </tr>
258 <tr height="18" style='height:13.50pt;'>
259  <td rowspan="2" x:str><strong>分布式</strong></td>
260  <td x:str><a href="code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer">ArkTS分布式音乐播放</a></td>
261  <td x:str><a href="code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc">分布式计算器</a></td>
262  <td x:str><a href="code/SuperFeature/DistributedAppDev/DistributedNote">分布式对象</a></td>
263  <td x:str><a href="code/SuperFeature/DistributedAppDev/DistributedRdb">分布式关系型数据库</a></td>
264 </tr>
265 <tr height="18" style='height:13.50pt;'>
266  <td x:str><a href="code/SuperFeature/DistributedAppDev/Kvstore">分布式数据管理</a></td>
267  <td x:str><a href="code/SuperFeature/DistributedAppDev/DistributedAuthentication">分布式组网认证</a></td>
268  <td x:str></td>
269  <td></td>
270 </tr>
271 <tr height="18" style='height:13.50pt;'>
272  <td x:str><strong>卡片</strong></td>
273  <td x:str><a href="code/SuperFeature/Widget/FormExtAbility">Stage模型卡片</a></td>
274  <td></td>
275  <td></td>
276  <td></td>
277 </tr>
278 <tr height="18" style='height:13.50pt;'>
279  <td height="90" align="center" rowspan="4" style='height:67.50pt' x:str><strong>行业解决方案</strong></td>
280  <td x:str><strong>即时通信</strong></td>
281  <td x:str><a href="code/Solutions/IM/Chat">聊天实例应用</a></td>
282  <td ></td>
283  <td ></td>
284  <td ></td>
285 </tr>
286 <tr height="18" style='height:13.50pt;'>
287  <td x:str><strong>电商</strong></td>
288  <td x:str><a href="code/Solutions/Shopping/OrangeShopping">购物示例应用</a></td>
289  <td ></td>
290  <td ></td>
291  <td ></td>
292 </tr>
293 </tr>
294 <tr height="18" style='height:13.50pt;'>
295  <td x:str><strong>游戏</strong></td>
296  <td x:str><a href="code/Solutions/Game/Game2048">游戏2048</a></td>
297  <td x:str><a href="code/Solutions/Game/Lottie">Lottie</a></td>
298  <td x:str><a href="code/Solutions/Game/DistributedDataGobang">分布式五子棋</a></td>
299  <td ></td>
300 </tr>
301 <tr height="18" style='height:13.50pt;'>
302  <td x:str><strong>工具</strong></td>
303  <td x:str><a href="code/Solutions/Tools/PatternLock">图案密码锁</a></td>
304  <td x:str><a href="code/Solutions/Tools/FlipClock">翻页时钟</a></td>
305  <td x:str><a href="code/Solutions/Tools/ArkTSClock">ArkTS时钟</a></td>
306  <td ></td>
307 </tr>
308 <tr height="18" style='height:13.50pt;'>
309  <td height="54" align="center" rowspan="3" style='height:40.50pt' x:str><strong>工程能力</strong></td>
310  <td x:str><strong>资源配置</strong></td>
311  <td x:str><a href="code/Project/ResourceAllocation/ApplicationThemeSwitch">应用主题切换</a></td>
312  <td ></td>
313  <td ></td>
314  <td ></td>
315 </tr>
316 <tr height="18" style='height:13.50pt;'>
317  <td x:str><strong>三方库使用</strong></td>
318  <td x:str><a href="code/Project/ThirdPartyLibrary/Npm">npm的使用</a></td>
319  <td ></td>
320  <td ></td>
321  <td ></td>
322 </tr>
323 <tr height="18" style='height:13.50pt;'>
324  <td x:str><strong>应用程序包</strong></td>
325  <td x:str><a href="code/Project/ApplicationHap/MultiHap">多hap</a></td>
326  <td ></td>
327  <td ></td>
328  <td ></td>
329 </tr>
330 <tr height="18" style='height:13.50pt;'>
331  <td rowspan="1" align="center" x:str><strong>语言基础类库</strong></td>
332  <td rowspan="1" x:str><strong>语言基础类库</strong></td>
333  <td x:str><a href="code/LaunguageBaseClassLibrary/LanguageBaseClassLibrary">语言基础类库</a></td>
334  <td x:str><a href="code/LaunguageBaseClassLibrary/JsWorker">启动一个worker</a></td>
335  <td x:str><a href="code/LaunguageBaseClassLibrary/ZipLib">压缩与解压</a></td>
336  <td ></td>
337 </tr>
338 <tr>
339 <![if supportMisalignedColumns]>
340   <tr height="18" style="display:none;">
341   </tr>
342  <![endif]>
343</table>
344
345
346
347
348
349## 目录<a name="sectionMenu"></a>
350
351Sample仓下所展示的组件能力:
352
353```
354code
355|---UI                         # UI开发
356  |---ArkTsComponentClollection    # ArkTs组件集
357  |---JsComponentClollection       # 类Web开发范式组件集
358|---BasicFeature               # 基础特性
359  |---ApplicationModels            # 应用模型
360  |---Notification                 # 通知
361  |---WindowManagement             # 窗口管理
362  |---Web                          # Web
363  |---Media                        # 媒体
364  |---Security                     # 安全
365  |---Connectivity                 # 网络与连接
366  |---DataManagement               # 数据管理
367  |---FileManagement               # 文件管理
368  |---Telephony                    # 电话服务
369  |---TaskManagement               # 任务管理
370  |---DeviceManagement             # 设备管理
371  |---DeviceUsageStatistics        # 设备使用信息统计
372  |---DFX                          # DFX
373  |---Internationalnation          # 国际化
374  |---IDL                          # IDL
375|---SystemFeature              # 系统特性
376  |---ApplicationModels            # 应用模型
377  |---WindowManagement             # 窗口管理
378  |---Media                        # 媒体
379  |---Connectivity                 # 网络与连接
380  |---DataManagement               # 数据管理
381  |---DeviceManagement             # 设备管理
382  |---Internationalnation          # 国际化
383|---SuperFeature               # 关键特性
384  |---MultiDeviceAppDev            # 一多
385  |---DistributedAppDev            # 分布式
386  |---Widget                       # 卡片
387|---Solutions                  # 行业解决方案
388  |---IM                           # 即时通信
389  |---Shopping                     # 电商
390  |---Game                         # 游戏
391  |---Tools                        # 工具
392|---Project                    # 工程能力
393  |---ResourceAllocation           # 资源配置
394  |---ThirdPartyLibrary            # 三方库使用
395  |---ApplicationHap               # 应用程序包
396|---LaunguageBaseClassLibrary  # 语言基础类库
397```
398
399## 约束<a name="section18841871178"></a>
400
401安装应用示例之前,请先查看"README_zh.md"文件来确认应用示例是否为stage模型,若为Stage模型需要查看entry/src/main路径下的module.json5文件中的"deviceType"字段来确认该应用支持的设备类型;否则为FA模型,查看entry/src/main路径下的config.json文件中的"deviceType"字段来确认该应用示例支持的设备类型,两种模型都可尝试通过修改该字段使其可以在相应类型的设备上运行。
402
403
404## 使用方法<a name="section17988202503116"></a>
405
4061.  本仓默认下载全量工程代码,如需下载单个应用工程代码,请先下载并执行工具[【Windows版本】](DirCloneTool/CloneSpecifyDirForWindows.bat)、[【macOS版本】]()、[【Linux版本】]()
4072.  将独立的应用示例工程导入DevEco Studio进行编译构建及运行调试。
4083.  部分应用示例中含有多个模块,开发者可以选择对单个模块进行编译构建,生成一个HAP应用安装包,也可以对整个工程进行编译构建,生成多个HAP应用安装包。
4094.  安装运行后,即可在设备上查看应用示例运行效果,以及进行相关调试。
410
411## Changlog<a name="section17988202503117"></a>
412
413应用修改记录:[changelog](changelog.md)
414
415## releasenote
416
417应用发布版本分支说明:[releasenote](releasenote.md)
418
419## 相关仓<a name="section17988202503118"></a>
420
4211. [app_sample](https://gitee.com/openharmony/app_samples) 已废弃
4222. [applications_app_sample](https://gitee.com/openharmony/applications_app_samples)
423
424