Jump to content

HarmonyOS Development Fundamentals: Difference between revisions

From Qt Wiki
Liang Qi (talk | contribs)
add a link for harmonyos_sdk_headers(including openharmony)
Liang Qi (talk | contribs)
add a few links for samples/codelabs/docs
Line 23: Line 23:


== Useful Links ==
== Useful Links ==
* https://github.com/harmonyosmirror/harmonyos_sdk_headers
* [https://github.com/harmonyosmirror/harmonyos_sdk_headers HarmonyOS SDK Headers(github)]
* [https://gitcode.com/HarmonyOS_Samples HarmonyOS Samples(gitcode)]
* [https://gitcode.com/HarmonyOS_Codelabs HarmonyOS Codelabs(gitcode)]
* [https://gitcode.com/openharmony/docs OpenHarmony Docs(gitcode)]


== Tricks ==
== Tricks ==

Revision as of 13:44, 26 January 2026

This page is still under development.

HarmonyOS and OpenHarmony

HarmonyOS is developed by Huawei for smartphones, tablets, smart TVs, smart watches, personal computers and other smart devices. OpenHarmony is a family of open-source distributed operating systems based on HarmonyOS derived from LiteOS, donated the L0-L2 branch source code by Huawei to the OpenAtom Foundation.

Technical Architecture

The image is from https://gitee.com/openharmony

Technical Details

  • IDE: DevEco Studio which runs on Windows and macOS(Intel+Apple silicon), see also "Environment Setup - Overview".
  • Command Line Tools which runs on Windows, macOS(Intel+Apple silicon) and Linux
  • HUAWEI Developer ID, more details in this page
  • Node-API: Developed based on the Node.js 12.x LTS Node-API, HarmonyOS Node-API allows interaction between ArkTS/JS and C/C++ modules. It provides a set of stable APIs that can be used on different operating systems. See also "Node-API Overview" and "Node-API Development Process".
  • ArkTS: ArkTS is the official high-level language for HarmonyOS application development. See also "ArkTS Cross-Language Interaction".
  • ArkUI: ArkUI provides a comprehensive infrastructure for UI development of applications, including simple UI syntax, a diverse array of UI features (components, layouts, animations, and interaction events), and a powerful previewer. See also "Window Manager" and "Display Management".
  • Other than testing on real HarmonyOS devices, there are Emulators in DevEco Studio, but with some limitations.

Examples

Useful Links

Tricks

  • Modify module.deviceTypes in entry/src/main/module.json5 in your project, remove "phone", add "tablet", "2in1" there, which is normally needed for an example project which is originally for phone only.

References