Note: To access all shared projects, get information about environment setup, and view other guides, please visit Explore-In-HMOS-Wearable Index.
This codelab shows how to use transient background task to execute code in the background after given time.
- Set execute time
- Run the tasks in the background
- Languages: ArkTS, ArkUI
- Frameworks: HarmonyOS SDK 5.1.0
- Tools: DevEco Studio 5.1.0
- Libraries: @kit.ArkUI
entry/src/main/ets/
├───entryability
│ EntryAbility.ets
├───entrybackupability
│ EntryBackupAbility.ets
├───pages
│ Index.ets
└───views
TimerView.ets
- Huawei Watch 5
Timer Background Task is distributed under the terms of the MIT License. See the license for more information.


