HU
No Result
View All Result
  • Home
  • HarmonyOS
    • HarmonyOS History
  • EMUI Updates
    • EMUI History
  • News
    Huawei Mate 80 Pro

    Huawei Mate 90 Hardware Upgrades & INSPIRE 2026 Cloud News

    MTN Zambia and Huawei

    MTN Zambia and Huawei, have teamed up to fix a big problem

    Huawei & Angola Partner

    Huawei & Angola Partner for Smart Grid Transformation & Green Energy

    Huawei Mate 90 news

    Huawei Mate 90 Series Sales Date: Flagship Timeline Revealed Early

    Huawei Nova 16 Ultra

    Huawei Nova 16 Ultra launched with 200MP camera and 7000mAh battery

    Huawei Maextro S800 ultra

    Huawei Maextro S800 ultra luxury sedan outsells Mercedes Maybach in China

    Huawei Keyrus

    Huawei partners with Keyrus to scale data and AI tools in global markets

    Huawei Logo Image - Credit Unsplash

    Huawei Ascend chips reach major milestone in new DeepSeek AI update

    Huawei Gartner 2026 image

    Huawei Named Leader in 2026 Gartner Wired and Wireless LAN Infrastructure Magic Quadrant

    Trending Tags

    • Mate 50
    • P40
  • Send A Tip
  • Home
  • HarmonyOS
    • HarmonyOS History
  • EMUI Updates
    • EMUI History
  • News
    Huawei Mate 80 Pro

    Huawei Mate 90 Hardware Upgrades & INSPIRE 2026 Cloud News

    MTN Zambia and Huawei

    MTN Zambia and Huawei, have teamed up to fix a big problem

    Huawei & Angola Partner

    Huawei & Angola Partner for Smart Grid Transformation & Green Energy

    Huawei Mate 90 news

    Huawei Mate 90 Series Sales Date: Flagship Timeline Revealed Early

    Huawei Nova 16 Ultra

    Huawei Nova 16 Ultra launched with 200MP camera and 7000mAh battery

    Huawei Maextro S800 ultra

    Huawei Maextro S800 ultra luxury sedan outsells Mercedes Maybach in China

    Huawei Keyrus

    Huawei partners with Keyrus to scale data and AI tools in global markets

    Huawei Logo Image - Credit Unsplash

    Huawei Ascend chips reach major milestone in new DeepSeek AI update

    Huawei Gartner 2026 image

    Huawei Named Leader in 2026 Gartner Wired and Wireless LAN Infrastructure Magic Quadrant

    Trending Tags

    • Mate 50
    • P40
  • Send A Tip
No Result
View All Result
HUpdate
No Result
View All Result
Home Harmony OS 2

Huawei HarmonyOS API: Key SDK changes, Java API, JS API, configuration files

Min by Min
June 29, 2021
in Harmony OS 2, Hongmeng
0
HarmonyOS SDK 2.2 Beta 1

HarmonyOS SDK 2.2 Beta 1

158
SHARES
2k
VIEWS
Share on FacebookShare on Twitter

Huawei officially launched the Harmony OS on June 2, 2021, its in-house operating system, a replacement for Android. The company announced a new watch – Watch 3 Series, a new tablet – MatePad Pro 10.8 & 12.6, and a new phone powered by HarmonyOS. The company has also shared a list of 100 different Huawei phone models to upgrade with Harmony OS over the next year.

Huawei has two different operating systems that it calls “HarmonyOS.” First is the IoT and smartwatch version of HarmonyOS, which is based on Huawei’s LiteOS and is open source. The second version of Harmony OS is for phones and tablets and is a fork of Android and uses the Linux kernel.

READ ALSO

Huawei testing HarmonyOS for MatePad T10s

Huawei’s HarmonyOS to Power Volkswagen Cars in China

The HarmonyOS API has been continuously expanded and improved, with more available functions and more powerful. But every time the version is updated, developers have to find out which APIs are added in the new version by themselves, which actually takes a lot of time.

Huawei responded that it brought the first API difference report this time. This report is based on API 6. It will provide you with version introduction, key SDK change instructions, etc., including Java API, JS API and configuration files.

Huawei HarmonyOS Phone

Version introduction:

HarmonyOS SDK 2.2 Beta 1 is released this time. Compared with the previous version, please refer to [Java API Difference Report (API 6 -> API 5)] and [JS API Difference Report (API 6 -> API 5)] for API changes.

● Java API difference report (API 6 -> API 5)

https://developer.harmonyos.com/cn/docs/documentation/doc-releases/apidiff-java-api-6-0000001123842928

● JS API difference report (API 6 -> API 5)

https://developer.harmonyos.com/cn/docs/documentation/doc-releases/apidiff-js-api-6-phone-component-0000001170697425

The key changes to the SDK are explained as follows:

❖ Java API part:

◆ Added the StartAbility interface that supports callbacks, which is mainly used in installation-free scenarios to facilitate developers to obtain the callback results of StartAbility.

◆ Added the function of providing background agent timing reminder and related interfaces, which can be used for system reminders of countdown, calendar, and alarm after the application is frozen or exited.

◆ Added the response interface when the provider of the service card receives the notification of the query card status initiated by the card service provider.

◆ Added an interface that provides file sharing capabilities in the application sandbox for sharing files in the sandbox.

❖ JS API part:

◆ div component function changes: the layout of the root node div no longer fills the full screen, but is set according to the size of the child nodes. For details, please refer to [div component function changes].

● div component function changes

https://developer.harmonyos.com/cn/docs/documentation/doc-releases/changelog-api-6-0000001170522589#section292715611144

◆ General style margin function change: When the component has set the percentage width and height and margin at the same time, there will be different layouts in API 5 and API 6. For details, please refer to [General Style Margin Function Changes].

● General style margin function changes

https://developer.harmonyos.com/cn/docs/documentation/doc-releases/changelog-api-6-0000001170522589#section168737911175

◆ Added APIs that provide several subsystems such as meta-capabilities, graphics, files, etc. For details, please refer to the JS API Difference Report (API 6 -> API 5).

❖ Configuration file section

In the configuration file config.json, the configuration method of the version.name and version.code fields have been modified. It is recommended that the application use a four-segment version number and the strong association relationship between the version.code field and the version.name field has been canceled.

Huawei HarmonyOS API SDK

(Via)

Join_Huawei_Update_Telegram_Channel

Tags: Harmony OSHarmonyOSHarmonyOS SDKHarmonyOS SDK 2.2 Beta 1HongmengHongmengOSHuawei

Related Posts

Huawei testing HarmonyOS for MatePad T10s
Harmony OS 2

Huawei testing HarmonyOS for MatePad T10s

May 21, 2023
Huawei's HarmonyOS to Power Volkswagen Cars in China
Android

Huawei’s HarmonyOS to Power Volkswagen Cars in China

May 19, 2023
Huawei Mate 40 Series latest Updates
EMUI 11

Huawei Mate 40 Series latest Updates

April 5, 2023
Q4 2022 global market share HarmonyOS vs iOS vs Android
Android

Q4 2022 global market share: HarmonyOS vs iOS vs Android

March 31, 2023
Huawei MatePad 11 2023
Harmony OS 2

MatePad Pro 12.6 and MatePad 11 gets new update

March 12, 2023
Huawei Freebuds 5i Update (1)
Harmony OS 2

Huawei Freebuds 5i March 2023 update rolling out

February 28, 2023

POPULAR NEWS

Huawei Health App Update

Huawei Health App Update 2026: New AI Features

July 15, 2026
Stable EMUI 12 2023

Updated EMUI 12 plan for Global users [January 2023]

January 19, 2023
Huawei EMUI 13 Eligible Devices

Huawei EMUI 13 Eligible devices for global market

March 22, 2023
Download and Install EMUI 10

Download and Install EMUI 10 on any Huawei phone

February 11, 2020
Huawei Music

Huawei Music Latest 2026 Update

May 28, 2026

EDITOR'S PICK

Honor V30 5G and Honor V30 Pro 5G

Honor V30 series gets Magic UI 3.0.1.160 update

January 23, 2020
Huawei MWC 2022 news (1)

Huawei Yu Chengdong announced to participate in the MWC 2022

February 25, 2022
Good Hope Cloud Service

Huawei releases Good Hope Cloud Service

March 5, 2021
Huawei P30 Lite NE (1)

Huawei Mate 30 Pro and P30 Lite NE getting May 2021 security update in Europe

June 28, 2021

About

HUpdate brings you the latest Huawei news, HarmonyOS & EMUI updates, firmware releases, and device coverage — all in one place. Stay updated with accurate, timely Huawei tech news.

Categories

  • Android
  • Ark OS
  • Deal
  • EMUI
  • EMUI 10
  • EMUI 10 Timeline
  • EMUI 10.1
  • EMUI 11
  • EMUI 12
  • EMUI 13
  • EMUI 14
  • EMUI 9.1
  • Game
  • Guides And How-To
  • Harmony OS 2
  • HarmonyOS 3
  • HarmonyOS 4
  • HarmonyOS 5
  • Hongmeng
  • Honor Products
  • Huawei 5G
  • Huawei Apps Apk
  • Huawei Mobile Services
  • Huawei News
  • Huawei Phones
  • Huawei Weekly Report
  • Magic UI 3
  • Magic UI 3.1
  • Magic UI 4.0
  • News
  • Tips And Tricks
  • Uncategorized
  • Updates

Recent Posts

  • Huawei Health App Update 2026: New AI Features
  • Huawei Mate 90 Hardware Upgrades & INSPIRE 2026 Cloud News
  • MTN Zambia and Huawei, have teamed up to fix a big problem
  • Huawei & Angola Partner for Smart Grid Transformation & Green Energy
  • About Us
  • Privacy Policy
  • Sitemap
  • Send A Tip

© 2026 HUpdate

No Result
View All Result
  • Home
  • HarmonyOS
    • HarmonyOS History
  • EMUI Updates
    • EMUI History
  • News
  • Send A Tip

© 2026 HUpdate

Go to mobile version