mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-26 18:20:47 +00:00
9916c0402a
Signed-off-by: wangzhiyu <wangzhiyu12@huawei.com>
102 lines
7.3 KiB
Markdown
Executable File
102 lines
7.3 KiB
Markdown
Executable File
# App Samples<a name="EN-US_TOPIC_0000001115464207"></a>
|
||
|
||
- [Introduction](#section1470103520301)
|
||
- [Content](#sectionMenu)
|
||
- [Usage](#section17988202503116)
|
||
- [Limitations](#section18841871178)
|
||
|
||
## Introduction<a name="section1470103520301"></a>
|
||
|
||
We 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.
|
||
|
||
## Content <a name="sectionMenu"></a>
|
||
|
||
- Basic
|
||
- [`Screenshot`:Screenshot (ArkTS)(API9)](code/SystemFeature/Media/Screenshot)
|
||
- AppSample
|
||
- [`Chat`:Chat Sample(ArkTS)(API9)](code/Solutions/IM/Chat)
|
||
- Account
|
||
- [`AppAccountManager`:App Account Manager (ArkTS)(API9)](code/BasicFeature/Security/AppAccountManager)
|
||
- Communication
|
||
- [`RPC`:RPC Connection (ArkTS)(API9)](code/BasicFeature/Connectivity/RPC)
|
||
- [`Wlan`:WLAN (ArkTS)(API9)](code/SystemFeature/Connectivity/Wlan)
|
||
- ability
|
||
- [`JsDistributedMusicPlayer`:Distributed Music Player(JS)(API10)](code/SuperFeature/DistributedAppDev/JsDistributedMusicPlayer)
|
||
- [`FormExtAbility`:Stage Form(ArkTS)(API9)](code/SuperFeature/Widget/FormExtAbility)
|
||
- [`MissionManager`:System Mission Manager(ArkTS)(API9)](code/SystemFeature/ApplicationModels/MissionManager)
|
||
- common
|
||
- [`Clock`:Clock(JS)(API10)](code/Solutions/Tools/JsClock)
|
||
- [`DistributeCalc`:Distributed Calculator(JS)(API10)](code/SuperFeature/DistributedAppDev/DistributeCalc)
|
||
- [`ResourceManager`:Resource Manager(ArkTS)(API9)](code/BasicFeature/Internationalnation/ResourceManager)
|
||
- [`JsHelloWorld`:'Hello World'(JS)(API8)](common/JsHelloWorld)
|
||
- [`PowerManager`:System Power Manager(ArkTS)(API9)](code/SystemFeature/DeviceManagement/PowerManager)
|
||
- [`International`:i18n(ArkTS)(API9)](code/SystemFeature/Internationalnation/International)
|
||
- data
|
||
- [`KvStore`:Distributed Database(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/Kvstore)
|
||
- [`DistributedRdb`:Distributed RDB(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedRdb)
|
||
- [`Preferences`:Preference(ArkTS)(API9)](code/BasicFeature/DataManagement/Preferences)
|
||
- [`DistributedNote`:Distributed Memo (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedNote)
|
||
- device
|
||
- [`Sensor`:Sensor(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Sensor)
|
||
- [`Vibrator`:Vibrator(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Vibrator)
|
||
- [`DeviceUsageStatistics`:Device Usage Statistics(ArkTS)(API9)](code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics)
|
||
- [`Browser`:Browser(ArkTS)(API9)](code/BasicFeature/Web/Browser)
|
||
- Graphics
|
||
- [`Window`:Window(ArkTS)(API9)](code/BasicFeature/WindowManagement/WindowManage)
|
||
- media
|
||
- [`Recorder`:Recorder(ArkTS)(API9)](code/BasicFeature/Media/Recorder)
|
||
- [`MultiMedia`:Multi Media(ArkTS)(API9)](code/Solutions/Media/MultiMedia)
|
||
- DFX
|
||
- [`FaultLogger`:Fault Logger(ArkTS)(API9)](code/BasicFeature/DFX/FaultLogger)
|
||
- [`Logger`:Logger(ArkTS)(API9)](code/BasicFeature/DFX/Logger)
|
||
- Telephony
|
||
- [`Call`:Call(ArkTS)(API9)](code/BasicFeature/Telephony/Call)
|
||
- [`Message`:Message(ArkTS)(API9)](code/BasicFeature/Telephony/Message)
|
||
- [`RadioTech`:Radio Tech(ArkTS)(API9)](code/BasicFeature/Telephony/RadioTech)
|
||
- [`SimManager`:SIM Card Manager(ArkTS)(API9)](code/BasicFeature/Telephony/SimManager)
|
||
- [`MobileNetwork`:Cellular Network(ArkTS)(API9)](code/BasicFeature/Telephony/MobileNetwork)
|
||
- thread
|
||
- [`JsWorker`:Launch a worker(JS)(API9)](code/LaunguageBaseClassLibrary/JsWorker)
|
||
- CompleteApps
|
||
- [`KikaInput`:Lite Input Method(JS)(API10)](code/Solutions/InputMethod/KikaInput)
|
||
- [`FlipClock`:Flip Clock(ArkTS)(API9)](code/Solutions/Tools/FlipClock)
|
||
- ETSUI
|
||
- [`Canvas`:Canvas(ArkTS)(API9)](code/UI/ArkTsComponentCollection/Canvas)
|
||
- [`DefiningPageLayoutAndConnection`:Defining Page Layout and Connection(ArkTS)(API9)](code/UI/ArkTsComponentCollection/DefiningPageLayoutAndConnection)
|
||
- [`Drag`:Drag (ArkTS)(API9)](code/UI/ArkTsComponentCollection/Drag)
|
||
- [`MediaQuery`:Media Query (ArkTS)(API9)](code/UI/ArkTsComponentCollection/MediaQuery)
|
||
- [`AdaptiveCapabilities`:AdaptiveCapabilities(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
|
||
- [`Game2048`:2048 Game(ArkTS)(API9)](code/Solutions/Game/Game2048)
|
||
- [`Lottie`:Lottie(ArkTS)(API9)](code/Solutions/Game/Lottie)
|
||
- Notification
|
||
- [`CustomCommonEvent`:Custom Common Event(ArkTS)(API9)](code/BasicFeature/Notification/CustomCommonEvent)
|
||
- [`CustomEmitter`:Custom Emitter (ArkTS)(API9)](code/BasicFeature/Notification/CustomEmitter)
|
||
- [`CustomNotification`:Subscribe&Send Notification (ArkTS)(API9)](code/BasicFeature/Notification/CustomNotification)
|
||
- Network
|
||
- [`Http`:http Request(ArkTS)(API9)](code/BasicFeature/Connectivity/Http)
|
||
- [`Socket`:Socket(ArkTS)(API9)](code/BasicFeature/Connectivity/Socket)
|
||
- Preset
|
||
- [`ArkTSClock`:Clock(ArkTS)(API9)](code/Solutions/Tools/ArkTSClock)
|
||
- [`ArkTSDistributeCalc`:Distributed Calculator(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc)
|
||
- [`ArkTSDistributedMusicPlayer`:Distributed Music Player (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer)
|
||
- PackageManagement
|
||
- [`ZipLib`:zip&unzip(ArkTS)(API9)](code/LaunguageBaseClassLibrary/ZipLib)
|
||
- ResourcesSchedule
|
||
- [`Flybird`:Game(ArkTS)(API9)](code/BasicFeature/TaskManagement/Flybird)
|
||
- UI
|
||
- [`AtomicLayout`:Atomic Layout(JS)(API8)](UI/AtomicLayout)
|
||
- [`Badge`:Badge(JS)(API8)](UI/Badge)
|
||
- [`JsAnimationStyle`:Animation Style(JS)(API8)](UI/JsAnimationStyle)
|
||
|
||
## Usage<a name="section17988202503116"></a>
|
||
|
||
1. Import an independent app sample project into DevEco Studio for compilation, building, running, and debugging.
|
||
2. 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.
|
||
3. After HAP installation and execution, you can view the execution effect of the sample on the device and then conduct debugging.
|
||
|
||
## Limitations<a name="section18841871178"></a>
|
||
|
||
1. 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.\)
|
||
2. 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).
|
||
3. App samples that can run on standard-system or small-system devices (as stipulated in **Readme**) must run on OpenHarmony.
|