• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="3" style='height:27.00pt' x:str><strong>UI</strong></td>
38  <td rowspan="2" x:str><strong>声明式开发范式</strong></td>
39  <td width="170" x:str><a href="code/UI/ArkTsComponentCollection/ComponentCollection">ArkTS组件集(API 10)</a></td>
40  <td width="170" x:str><a href="code/UI/ArkTsComponentCollection/Canvas">画布组件</a></td>
41  <td width="170" x:str><a href="code/UI/ArkTsComponentCollection/DefiningPageLayoutAndConnection">页面布局和连接</a></td>
42  <td width="170" x:str><a href="code/UI/ArkTsComponentCollection/Drag">拖拽事件</a></td>
43 </tr>
44 <tr height="18" style='height:13.50pt;'>
45  <td x:str><a href="code/UI/ArkTsComponentCollection/MediaQuery">横竖屏切换</a></td>
46  <td x:str><a href="code/UI/ArkTsComponentCollection/StateManagement">状态管理</a></td>
47  <td ></td>
48  <td ></td>
49 </tr>
50 <tr height="18" style='height:13.50pt;'>
51  <td x:str><strong>类Web开发范式</strong></td>
52  <td x:str><a href="code/UI/JsComponentCollection/JsComponentCollection">Js组件集</a></td>
53  <td ></td>
54  <td ></td>
55  <td ></td>
56 </tr>
57 <tr height="18" style='height:13.50pt;'>
58  <td height="270" align="center" rowspan="27" style='height:202.50pt' x:str><strong>基础特性</strong></td>
59  <td x:str><strong>应用模型</strong></td>
60  <td x:str><a href="code/BasicFeature/ApplicationModels/StageModel">Stage模型(API 10)</a></td>
61  <td x:str><a href="code/BasicFeature/ApplicationModels/AbilityStartMode">Ability的启动方式</a></td>
62  <td x:str><a href="code/BasicFeature/ApplicationModels/CustomShare">自定义分享</a></td>
63  <td ></td>
64 </tr>
65 <tr height="18" style='height:13.50pt;'>
66  <td rowspan="2" x:str><strong>通知</strong></td>
67  <td x:str><a href="code/BasicFeature/Notification/CustomEmitter">自定义Emitter</a></td>
68  <td x:str><a href="code/BasicFeature/Notification/CustomNotification">自定义通知</a></td>
69  <td x:str><a href="code/BasicFeature/Notification/CustomCommonEvent">公共事件的订阅和发布(API 10)</a></td>
70  <td x:str><a href="code/BasicFeature/Notification/CustomNotificationBadge">自定义通知角标(API 10)</a></td>
71 </tr>
72 <tr height="18" style='height:13.50pt;'>
73  <td x:str><a href="code/BasicFeature/Notification/CustomNotificationPush">自定义通知推送(API 10)</a></td>
74  <td ></td>
75  <td ></td>
76  <td ></td>
77 </tr>
78 <tr height="18" style='height:13.50pt;'>
79  <td x:str><strong>窗口管理</strong></td>
80  <td x:str><a href="code/BasicFeature/WindowManagement/WindowManage">窗口管理</a></td>
81  <td x:str><a href="code/BasicFeature/WindowManagement/WindowRatio">窗口(API 10)</a></td>
82  <td ></td>
83  <td ></td>
84 </tr>
85 <tr height="18" style='height:13.50pt;'>
86  <td x:str><strong>Web</strong></td>
87  <td x:str><a href="code/BasicFeature/Web/Browser">浏览器</a></td>
88  <td x:str><a href="code/BasicFeature/Web/RunJsInWeb">JS注入与执行</a></td>
89  <td ></td>
90  <td ></td>
91 </tr>
92 <tr height="18" style='height:13.50pt;'>
93  <td rowspan="3" x:str><strong>媒体</strong></td>
94  <td x:str><a href="code/BasicFeature/Media/Image">图片显示及处理</a></td>
95  <td x:str><a href="code/BasicFeature/Media/VideoShow">视频播放</a></td>
96  <td x:str><a href="code/BasicFeature/Media/GamePuzzle">图片裁剪与分割</a></td>
97  <td x:str><a href="code/BasicFeature/Media/ImageShow">图片显示</a></td>
98 </tr>
99 <tr height="18" style='height:13.50pt;'>
100  <td x:str><a href="code/BasicFeature/Media/Recorder">录音机</a></td>
101  <td x:str><a href="code/BasicFeature/Media/QRCodeScan">二维码扫描</a></td>
102  <td x:str><a href="code/BasicFeature/Media/AVSession/MediaController">媒体会话——控制方(API 10)</a></td>
103  <td x:str><a href="code/BasicFeature/Media/AVSession/MediaProvider">媒体会话——提供方(API 10)</a></td>
104 </tr>
105 <tr height="18" style='height:13.50pt;'>
106  <td x:str><a href="code/BasicFeature/Media/AVRecorder">音视频录制</a></td>
107  <td x:str><a href="code/BasicFeature/Media/Audio">音频管理(API 10)</a></td>
108  <td x:str><a href="code/BasicFeature/Media/VideoPlay">视频播放</a></td>
109  <td x:str><a href="code/BasicFeature/Media/VoiceCallDemo">音频通话示例</td>
110 </tr>
111 <tr height="18" style='height:13.50pt;'>
112  <td rowspan="2"><strong>安全</strong></td>
113  <td x:str><a href="code/BasicFeature/Security/Cipher">加解密</a></td>
114  <td x:str><a href="code/BasicFeature/Security/AppAccountManager">应用账号管理</a></td>
115  <td x:str><a href="code/BasicFeature/Security/CertificateFramework">证书算法库框架</a></td>
116  <td x:str><a href="code/BasicFeature/Security/CryptoFramework">通用密钥库系统(cryptoFramework)</a></td>
117 </tr>
118 <tr height="18" style='height:13.50pt;'>
119  <td x:str><a href="code/BasicFeature/Security/Huks">通用密钥库系统(huks)</a></td>
120  <td x:str><a href="code/BasicFeature/Security/PaySecurely">支付</a></td>
121  <td ></td>
122  <td ></td>
123 </tr>
124 <tr height="18" style='height:13.50pt;'>
125  <td rowspan="2" x:str><strong>网络与连接</strong></td>
126  <td x:str><a href="code/BasicFeature/Connectivity/Http">Http</a></td>
127  <td x:str><a href="code/BasicFeature/Connectivity/RPC">RPC通信</a></td>
128  <td x:str><a href="code/BasicFeature/Connectivity/Socket">网络管理-Socket连接</a></td>
129  <td x:str><a href="code/BasicFeature/Connectivity/WebSocket">WebSocket</a></td>
130 </tr>
131 <tr height="18" style='height:13.50pt;'>
132  <td x:str><a href="code/BasicFeature/Connectivity/StageSocket">Socket连接</a></td>
133  <td x:str><a href="code/BasicFeature/Connectivity/Bluetooth">蓝牙</a></td>
134  <td x:str><a href="code/BasicFeature/Connectivity/UploadAndDownLoad">上传和下载(API 10)</a></td>
135  <td ></td>
136 </tr>
137 <tr height="18" style='height:13.50pt;'>
138  <td x:str><strong>数据管理</strong></td>
139  <td x:str><a href="code/BasicFeature/DataManagement/Preferences">首选项</a></td>
140  <td ></td>
141  <td ></td>
142  <td ></td>
143 </tr>
144 <tr height="18" style='height:13.50pt;'>
145  <td x:str><strong>文件管理</strong></td>
146  <td x:str><a href="code/BasicFeature/FileManagement/FileBackupExtension">应用接入数据备份恢复(API 10)</a></td>
147  <td x:str><a href="code/BasicFeature/FileManagement/FileManager">文件管理(API 10)</a></td>
148  <td x:str><a href="code/BasicFeature/FileManagement/MediaCollections">媒体管理合集</a></td>
149  <td ></td>
150 </tr>
151 <tr height="18" style='height:13.50pt;'>
152  <td rowspan="2" x:str><strong>设备管理</strong></td>
153  <td x:str><a href="code/BasicFeature/DeviceManagement/Location">位置服务</a></td>
154  <td x:str><a href="code/BasicFeature/DeviceManagement/ScreenDetector">屏幕探测</a></td>
155  <td x:str><a href="code/BasicFeature/DeviceManagement/DeviceManagementCollection">设备管理合集(API 10)</a></td>
156  <td x:str><a href="code/BasicFeature/DeviceManagement/Vibrator/CustomHaptic">自定义振动(API 10)</a></td>
157 </tr>
158 <tr height="18" style='height:13.50pt;'>
159  <td x:str><a href="code/BasicFeature/DeviceManagement/Vibrator/BasicVibration">振动</a></td>
160  <td ></td>
161  <td ></td>
162  <td ></td>
163 </tr>
164 <tr height="18" style='height:13.50pt;'>
165  <td rowspan="2" x:str><strong>电话服务</strong></td>
166  <td x:str><a href="code/BasicFeature/Telephony/Call">拨打电话</a></td>
167  <td x:str><a href="code/BasicFeature/Telephony/SimManager">SIM卡管理</a></td>
168  <td x:str><a href="code/BasicFeature/Telephony/Message">短信</a></td>
169  <td x:str><a href="code/BasicFeature/Telephony/Contact">联系人</a></td>
170 </tr>
171 <tr height="18" style='height:13.50pt;'>
172  <td x:str><a href="code/BasicFeature/Telephony/Observer">网络和Sim卡状态订阅</a></td>
173  <td x:str><a href="code/BasicFeature/Telephony/MobileNetwork">蜂窝数据</a></td>
174  <td x:str><a href="code/BasicFeature/Telephony/RadioTech">网络搜索</td>
175  <td ></td>
176 </tr>
177 <tr height="18" style='height:13.50pt;'>
178  <td rowspan="2" x:str><strong>任务管理</strong></td>
179  <td x:str><a href="code/BasicFeature/TaskManagement/ReminderAgentManager">后台代理提醒</a></td>
180  <td x:str><a href="code/BasicFeature/TaskManagement/WorkScheduler">延迟任务调度</a></td>
181  <td x:str><a href="code/BasicFeature/TaskManagement/Flybird">资源调度接口使用</a></td>
182  <td x:str><a href="code/BasicFeature/TaskManagement/ContinuousTask">长时任务</a></td>
183 </tr>
184 <tr height="18" style='height:13.50pt;'>
185  <td x:str><a href="code/BasicFeature/TaskManagement/TransientTask">短时任务</a></td>
186  <td ></td>
187  <td ></td>
188  <td ></td>
189 </tr>
190 <tr height="18" style='height:13.50pt;'>
191  <td x:str><strong>设备信息统计</strong></td>
192  <td x:str><a href="code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics">设备使用信息统计</a></td>
193  <td ></td>
194  <td ></td>
195  <td ></td>
196 </tr>
197 <tr height="18" style='height:13.50pt;'>
198  <td rowspan="2" x:str><strong>DFX</strong></td>
199  <td x:str><a href="code/BasicFeature/DFX/Debug">Debug调试</a></td>
200  <td ><a href="code/BasicFeature/DFX/DotTest">测试打点</a></td>
201  <td ><a href="code/BasicFeature/DFX/FaultLogger">故障日志获取</a></td>
202  <td ><a href="code/BasicFeature/DFX/Logger">日志打印</a></td>
203 </tr>
204 <tr height="18" style='height:13.50pt;'>
205  <td x:str><a href="code/BasicFeature/DFX/AppRecovery">应用故障恢复(API 10)</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/BasicFeature/Resource/ResourceManager">资源管理(API 10)</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>IDL</strong></td>
219  <td x:str><a href="code/BasicFeature/IDL/AbilityConnectServiceExtension">Ability与ServiceExtensionAbility通信</a></td>
220  <td x:str></td>
221  <td x:str></td>
222  <td x:str></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/BasicFeature/International/International">国际化</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>Native</strong></td>
233  <td x:str><a href="code/BasicFeature/Native/NdkRawfile">获取Rawfile资源</a></td>
234  <td x:str><a href="code/BasicFeature/Native/NdkXComponent">Native XComponent(API 10)</a></td>
235  <td ></td>
236  <td ></td>
237 </tr>
238 <tr height="18" style='height:13.50pt;'>
239  <td height="90" align="center" rowspan="9" style='height:67.50pt;' x:str><strong>系统特性</strong></td>
240  <td rowspan="2" x:str><strong>应用模型</strong></td>
241  <td x:str><a href="code/SystemFeature/ApplicationModels/Launcher">仿桌面应用(API 10)</a></td>
242  <td x:str><a href="code/SystemFeature/ApplicationModels/MissionManager">任务管理</a></td>
243  <td x:str><a href="code/SystemFeature/ApplicationModels/StaticSubscriber">静态订阅</a></td>
244  <td x:str><a href="code/SystemFeature/ApplicationModels/AccessibilityExtAbility">无障碍扩展</a></td>
245 </tr>
246 <tr height="18" style='height:13.50pt;'>
247  <td x:str><a href="code/SystemFeature/ApplicationModels/EnterpriseAdminExtensionAbility">企业设备管理扩展</a></td>
248  <td x:str><a href="code/SystemFeature/ApplicationModels/TestRely/LauncherTest/CrossChainBack">跨任务链返回</a></td>
249  <td x:str><a href="code/SystemFeature/ApplicationModels/TestRely/LauncherTest/StartRecentAbility">启动上一次的组件实例</a></td>
250  <td ></td>
251 </tr>
252 <tr height="18" style='height:13.50pt;'>
253  <td x:str><strong>媒体</strong></td>
254  <td x:str><a href="code/SystemFeature/Media/Screenshot">截屏</a></td>
255  <td x:str><a href="code/SystemFeature/Media/ScreenRecorder">录屏</a></td>
256  <td x:str><a href="code/SystemFeature/Media/Camera">相机和媒体库</a></td>
257  <td ></td>
258 </tr>
259 </tr>
260  <tr height="18" style='height:13.50pt;'>
261  <td x:str><strong>安全</strong></td>
262  <td x:str><a href="code/SystemFeature/Security/AbilityAccessCtrl">应用访问权限控制</a></td>
263  <td ></td>
264  <td ></td>
265  <td ></td>
266 </tr>
267 <tr height="18" style='height:13.50pt;'>
268  <td x:str><strong>窗口管理</strong></td>
269  <td x:str><a href="code/SystemFeature/WindowManagement/WindowExtAbility">窗口扩展</a></td>
270  <td ></td>
271  <td ></td>
272  <td ></td>
273 </tr>
274 <tr height="18" style='height:13.50pt;'>
275  <td x:str><strong>网络与连接</strong></td>
276  <td x:str><a href="code/SystemFeature/Connectivity/Wlan">Wlan</a></td>
277  <td x:str><a href="code/SystemFeature/Connectivity/Bluetooth">蓝牙</a></td>
278  <td x:str><a href="code/SystemFeature/Connectivity/Upload">上传</a></td>
279  <td ></td>
280 </tr>
281 <tr height="18" style='height:13.50pt;'>
282  <td x:str><strong>数据管理</strong></td>
283  <td x:str><a href="code/SystemFeature/DataManagement/CrossAppDataShare">系统应用跨应用数据共享</a></td>
284  <td ></td>
285  <td ></td>
286  <td ></td>
287 </tr>
288 <tr height="18" style='height:13.50pt;'>
289  <td x:str><strong>设备管理</strong></td>
290  <td x:str><a href="code/SystemFeature/DeviceManagement/StorageStatistic">存储空间统计</a></td>
291  <td x:str><a href="code/SystemFeature/DeviceManagement/Screen">屏幕属性</a></td>
292  <td x:str><a href="code/SystemFeature/DeviceManagement/DeviceManagementCollection">设备管理合集(API 10)</a></td>
293  <td ></td>
294 </tr>
295 <tr height="18" style='height:13.50pt;'>
296  <td x:str><strong>国际化</strong></td>
297  <td x:str><a href="code/SystemFeature/Internationalnation/International">时区和语言设置(API 10)</a></td>
298  <td ></td>
299  <td ></td>
300  <td ></td>
301 <tr height="18" style='height:13.50pt;'>
302  <td height="90" align="center" rowspan="7" style='height:67.50pt;' x:str><strong>关键特性</strong></td>
303  <td rowspan="2" x:str><strong>一次开发,多端部署</strong></td>
304  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities">ArkTS一多能力集合(API 10)</a></td>
305  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/JsAdaptiveCapabilities">Js一多能力集合</a></td>
306  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/Weather">入门示例:天气应用</a></td>
307  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/HealthyDiet">典型页面场景:健康饮食</a></td>
308 </tr>
309 <tr height="18" style='height:13.50pt;'>
310  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/AppMarket">典型页面场景:应用市场首页</a></td>
311  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/MusicAlbum">典型页面场景:音乐专辑页</a></td>
312  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/Settings">典型页面场景:设置应用页面</a></td>
313  <td x:str><a href="code/SuperFeature/MultiDeviceAppDev/MultiColumns">典型页面场景:一多分栏控件(API 10)</a></td>
314 </tr>
315 <tr height="18" style='height:13.50pt;'>
316  <td rowspan="3" x:str><strong>分布式</strong></td>
317  <td x:str><a href="code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer">ArkTS分布式音乐播放</a></td>
318  <td x:str><a href="code/SuperFeature/DistributedAppDev/JsDistributedMusicPlayer">Js分布式音乐播放(API 10)</a></td>
319  <td x:str><a href="code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc">分布式计算器</a></td>
320  <td x:str><a href="code/SuperFeature/DistributedAppDev/DistributeCalc">Js分布式计算器(API 10)</a></td>
321 </tr>
322 <tr height="18" style='height:13.50pt;'>
323 <td x:str><a href="code/SuperFeature/DistributedAppDev/DistributedNote">分布式对象</a></td>
324  <td x:str><a href="code/SuperFeature/DistributedAppDev/DistributedRdb">分布式关系型数据库(API 10)</a></td>
325  <td x:str><a href="code/SuperFeature/DistributedAppDev/Kvstore">分布式数据管理</a></td>
326  <td x:str><a href="code/SuperFeature/DistributedAppDev/DistributedAuthentication">分布式组网认证(API 10)</a></td>
327 </tr>
328 <tr height="18" style='height:13.50pt;'>
329 <td x:str><a href="code/SuperFeature/DistributedAppDev/DistributedAccount">分布式帐号(API 10)</a></td>
330  <td></td>
331  <td></td>
332  <td></td>
333 </tr>
334 <tr height="18" style='height:13.50pt;'>
335  <td rowspan="2" x:str><strong>卡片</strong></td>
336  <td x:str><a href="code/SuperFeature/Widget/AdaptiveServiceWidget">Js多设备自适应服务卡片</a></td>
337  <td x:str><a href="code/SuperFeature/Widget/FormExtAbility">Stage模型卡片</a></td>
338  <td x:str><a href="code/SuperFeature/Widget/FormGame">Stage模型卡片JS与C++通信</a></td>
339  <td x:str><a href="code/SuperFeature/Widget/RequestAddForm">应用主动添加数据代理卡片到桌面(API 10)</a></td>
340 </tr>
341 <tr height="18" style='height:13.50pt;'>
342  <td x:str><a href="code/SuperFeature/Widget/ArkTSCard/CanvasGame">ArkTS卡片Canvas小游戏</a></td>
343  <td x:str><a href="code/SuperFeature/Widget/ArkTSCard/MusicControl">ArkTs音乐卡片</a></td>
344  <td x:str><a href="code/SuperFeature/Widget/ArkTSCard/Calculator">ArkTS卡片计算器</a></td>
345  <td></td>
346 </tr>
347 <tr height="18" style='height:13.50pt;'>
348  <td height="90" align="center" rowspan="6" style='height:67.50pt' x:str><strong>行业解决方案</strong></td>
349  <td x:str><strong>即时通信</strong></td>
350  <td x:str><a href="code/Solutions/IM/Chat">聊天实例应用(API 10)</a></td>
351  <td ></td>
352  <td ></td>
353  <td ></td>
354 </tr>
355 <tr height="18" style='height:13.50pt;'>
356  <td x:str><strong>输入法</strong></td>
357  <td x:str><a href="code/Solutions/InputMethod/KikaInput">轻量级输入法(API 10)</a></td>
358  <td x:str><a href="code/Solutions/InputMethod/CustomInputText">自绘编辑框(API 10)</a></td>
359  <td x:str><a href="code/Solutions/InputMethod/KikaInputMethod">Kika输入法应用(API 10)</a></td>
360  <td ></td>
361 </tr>
362 <tr height="18" style='height:13.50pt;'>
363  <td x:str><strong>电商</strong></td>
364  <td x:str><a href="code/Solutions/Shopping/OrangeShopping">购物示例应用</a></td>
365  <td ></td>
366  <td ></td>
367  <td ></td>
368 </tr>
369 </tr>
370 <tr height="18" style='height:13.50pt;'>
371  <td x:str><strong>媒体</strong></td>
372  <td x:str><a href="code/Solutions/Media/MultiMedia">仿相机</a></td>
373  <td ></td>
374  <td ></td>
375  <td ></td>
376 </tr>
377 <tr height="18" style='height:13.50pt;'>
378  <td x:str><strong>游戏</strong></td>
379  <td x:str><a href="code/Solutions/Game/Game2048">游戏2048</a></td>
380  <td x:str><a href="code/Solutions/Game/Lottie">Lottie</a></td>
381  <td x:str><a href="code/Solutions/Game/DistributedDataGobang">分布式五子棋</a></td>
382  <td ></td>
383 </tr>
384 <tr height="18" style='height:13.50pt;'>
385  <td x:str><strong>工具</strong></td>
386  <td x:str><a href="code/Solutions/Tools/PatternLock">图案密码锁</a></td>
387  <td x:str><a href="code/Solutions/Tools/FlipClock">翻页时钟</a></td>
388  <td x:str><a href="code/Solutions/Tools/JsClock">Js时钟(API 10)</a></td>
389  <td x:str><a href="code/Solutions/Tools/ArkTSClock">ArkTS时钟</a></td>
390 </tr>
391 <tr height="18" style='height:13.50pt;'>
392  <td height="54" align="center" rowspan="3" style='height:40.50pt' x:str><strong>工程能力</strong></td>
393  <td x:str><strong>资源配置</strong></td>
394  <td x:str><a href="code/Project/ResourceAllocation/ApplicationThemeSwitch">应用主题切换</a></td>
395  <td ></td>
396  <td ></td>
397  <td ></td>
398 </tr>
399 <tr height="18" style='height:13.50pt;'>
400  <td x:str><strong>应用程序包</strong></td>
401  <td x:str><a href="code/Project/ApplicationHap/MultiHap">多hap</a></td>
402  <td ></td>
403  <td ></td>
404  <td ></td>
405 </tr>
406 <tr height="18" style='height:13.50pt;'>
407  <td x:str><strong>Test</strong></td>
408  <td x:str><a href="code/Project/Test">测试框架</a></td>
409  <td ></td>
410  <td ></td>
411  <td ></td>
412 </tr>
413 <tr height="18" style='height:13.50pt;'>
414  <td rowspan="1" align="center" x:str><strong>语言基础类库</strong></td>
415  <td rowspan="1" x:str><strong>语言基础类库</strong></td>
416  <td x:str><a href="code/LaunguageBaseClassLibrary/LanguageBaseClassLibrary">语言基础类库(API 10)</a></td>
417  <td x:str><a href="code/LaunguageBaseClassLibrary/ConcurrentModule">多线程任务</a></td>
418  <td x:str><a href="code/LaunguageBaseClassLibrary/ZipLib">压缩与解压</a></td>
419  <td ></td>
420 </tr>
421 <tr>
422 <![if supportMisalignedColumns]>
423   <tr height="18" style="display:none;">
424   </tr>
425  <![endif]>
426</table>
427
428
429
430
431
432## 目录<a name="sectionMenu"></a>
433
434Sample仓下所展示的组件能力:
435
436```
437code
438|---UI                         # UI开发
439  |---ArkTsComponentCollection    # ArkTs组件集
440  |---JsComponentCollection       # 类Web开发范式组件集
441|---BasicFeature               # 基础特性
442  |---ApplicationModels            # 应用模型
443  |---Notification                 # 通知
444  |---WindowManagement             # 窗口管理
445  |---Web                          # Web
446  |---Media                        # 媒体
447  |---Security                     # 安全
448  |---Connectivity                 # 网络与连接
449  |---DataManagement               # 数据管理
450  |---FileManagement               # 文件管理
451  |---Telephony                    # 电话服务
452  |---TaskManagement               # 任务管理
453  |---DeviceManagement             # 设备管理
454  |---DeviceUsageStatistics        # 设备使用信息统计
455  |---DFX                          # DFX
456  |---Resource                     # 资源
457  |---IDL                          # IDL
458  |---Native                       # Native c++
459|---SystemFeature              # 系统特性
460  |---ApplicationModels            # 应用模型
461  |---WindowManagement             # 窗口管理
462  |---Media                        # 媒体
463  |---Connectivity                 # 网络与连接
464  |---DataManagement               # 数据管理
465  |---DeviceManagement             # 设备管理
466  |---Internationalnation          # 国际化
467|---SuperFeature               # 关键特性
468  |---MultiDeviceAppDev            # 一多
469  |---DistributedAppDev            # 分布式
470  |---Widget                       # 卡片
471|---Solutions                  # 行业解决方案
472  |---IM                           # 即时通信
473  |---InputMethod                  # 输入法
474  |---Shopping                     # 电商
475  |---Media                        # 媒体
476  |---Game                         # 游戏
477  |---Tools                        # 工具
478|---Project                    # 工程能力
479  |---ResourceAllocation           # 资源配置
480  |---ApplicationHap               # 应用程序包
481  |---Test                         # 测试框架
482|---LaunguageBaseClassLibrary  # 语言基础类库
483```
484
485## 约束<a name="section18841871178"></a>
486
487安装应用示例之前,请先查看"README_zh.md"文件来确认应用示例是否为stage模型,若为Stage模型需要查看entry/src/main路径下的module.json5文件中的"deviceType"字段来确认该应用支持的设备类型;否则为FA模型,查看entry/src/main路径下的config.json文件中的"deviceType"字段来确认该应用示例支持的设备类型,两种模型都可尝试通过修改该字段使其可以在相应类型的设备上运行。
488
489
490## 使用方法<a name="section17988202503116"></a>
491
4921.  将独立的应用示例工程导入DevEco Studio进行编译构建及运行调试。
4932.  部分应用示例中含有多个模块,开发者可以选择对单个模块进行编译构建,生成一个HAP应用安装包,也可以对整个工程进行编译构建,生成多个HAP应用安装包。
4943.  安装运行后,即可在设备上查看应用示例运行效果,以及进行相关调试。
495
496## Changlog<a name="section17988202503117"></a>
497
498应用修改记录:[changelog](changelog.md)
499
500## releasenote
501
502应用发布版本分支说明:[releasenote](releasenote.md)
503
504## 相关仓<a name="section17988202503118"></a>
505
5061. [app_sample](https://gitee.com/openharmony/app_samples) 已废弃
5072. [applications_app_sample](https://gitee.com/openharmony/applications_app_samples)
508
509