Connect with us

HarmonyOS

HarmonyOS phone and other development including DevEco Studio 2.1 beta 3 released

Published

on


Huawei DevEco Studio is an all-in integrated development environment for Huawei’s full scenario and multiple devices, providing developers with project template creation, development compilation, debugging, end to end HarmonyOS application development services such as testing and publishing them on the store.

Previously, Huawei already released two DevEco Studio beta versions that brought lots of new changes, improvements, and features, which help out the developers in improving the innovation productivity.

Now, Huawei has started delivering one more beta for developers, DevEco Studio 2.1 Beta 3. With the latest changelog, the company introduced new features including a two-preview function, data simulation function, and much more.

New Beta version:

  • Huawei DevEco Studio 2.1 Beta 3

What’s in this update:

  • The previewer adds a two-way preview function
  • The previewer adds the data simulation function of the Java UI interface
  • The editor adds config.json visual configuration function
  • The editor has a new resource creation wizard function
  • New Java testing framework
  • Added 5 new phone project templates
  • Optimizations for existing features

Take a look at new changes in detail:

1. The previewer adds a two-way preview function

At the time of HarmonyOS application development, the developers need to click “Previewer” to view the application’s UI interface effect. When the developer finds that the layout display of the UI interface does not meet expectations (eg: the width of the control does not meet the set value, the control is not displayed, etc.), so it is necessary to check the layout or control abnormality in the UI interface one by one.

Advertisement

In order to improve the efficiency of development, DevEco Studio 2.1 Beta 3 unlocks the two-way preview function on the basis of the existing “real-time preview” and “dynamic preview”.

  • Real-time preview: As long as the modified source code is saved in the layout file, the layout effect can be viewed in real-time in the previewer.
  • Dynamic preview: In the previewer interface, you can operate the interactive actions of the application in the previewer, such as click events, jumps, and slides, which are consistent with the interactive experience of the application running on a real device.

The so-called two-way preview is to support the linkage between the code editor and the previewer interface (including the property list), which is convenient for quickly positioning the control, thereby improving the efficiency of solving UI interface problems. Developers can open the two-way preview function by clicking on the icon on the previewer interface.

The specific linkage effects are as follows:

  1. After modifying the attribute or style through the attribute list in the previewer interface, the source code in the code editor will be modified synchronously, and the previewer interface will be refreshed in real-time.
  2. Similarly, if you modify the source code in the code editor, the previewer interface and attribute list will be refreshed in real-time.

2.The previewer adds the data simulation function of the Java UI interface

In the preview scene, because the code running environment is different from the running environment on the real device, a valid return value cannot be obtained when calling some interfaces. If developers want to make different UI interface displays based on the return value, they need to manually modify the code logic repeatedly to verify the effects of different UI interfaces.

Advertisement

In order to reduce the modification, DevEco Studio provides PreviewMock data simulation function, that is, without changing the business operation logic, simulate the return value of various methods in the API or business code (excluding the construction method) and the Field in the object (not including final field). In this way, the developer can view the interface changes brought about by different return values ​​during the preview.

However, it is worth mentioning that DevEco Studio 2.1 Beta 3 currently only supports the PreviewMock data simulation function of the Java UI interface. At the same time, if you want to use the PreviewMock data simulation function, you need to add related dependencies in the module’s build.gradle, and resynchronize the project.

In addition to the above features, in the preview of the Java UI interface, when the developer previews Ability or AbilitySlice, save the modified code to achieve real-time preview; in the preview of the JS UI interface, the developer can directly select a certain A page (page) for real-time dynamic preview.

3. The editor adds config.json visual configuration function

Advertisement

As an introductory player in HarmonyOS application development, do you repeatedly consult the documentation on the HarmonyOS official website in order to understand the meaning of the configuration items? In order to reduce the behavior of developers repeatedly switching the interface to look up data and documents, DevEco Studio 2.1 Beta 3 has added a new visual configuration function.

Developers can open the config.json file and click the button to open the settings interface to view the important attributes and their meanings that need to be filled in the project and improve the configuration of application name, application version number, application type, ability, device type, application permissions, etc. item.

However, during the development process, there may be scenarios with too many levels of configuration items, for example: when configuring the “Module ›Ablilities› Meta Data ›Merge Rule› Replace” field, the user can quickly locate the attribute through the search box and click the add button, Enter the relevant merge rules, trigger the system to automatically create a tree structure of configuration items in the config.json file, complete the configuration of the merge rules, and save configuration time.

4. The editor has a new resource creation wizard function

Advertisement

When creating a resource catalog with qualifiers, developers need to consider the value of the qualifiers, the order in which different qualifiers match each other, etc. A slight deviation will cause HarmonyOS to fail to detect suitable resources when the application is running. Unable to show the expected effect.

In order to reduce the chance of errors when developers create resource directories with qualifiers, DevEco Studio 2.1 Beta 3 adds a new resource creation wizard function. Users can select or input according to the interface prompts to complete the creation of resource directories and files without thinking. The combination of various qualifiers.

5. New Java testing framework

In order to reduce the tedious manual testing process, DevEco Studio 2.1 Beta3 adds a new Java testing framework, providing white-box testing capabilities for Java code, helping developers to efficiently write and execute test cases, and to ensure the basic quality of applications.

Advertisement

In the development stage, developers can use the IAbilityDelegator provided by the Java testing framework to perform APP component manipulation tests (such as starting/closing FA, obtaining interface UI elements, injecting UI click events, etc.) to discover UI interaction problems in time. Or use the JUnit 4 syntax paradigm to write test cases, call system interfaces, obtain API return values ​​or trigger business processes, and judge the correctness of business logic based on interface return values ​​or business status.

Prerequisites for the Java testing framework to run on a real machine or remote simulator device:

  1. The remote simulator needs to register a developer account and complete real-name authentication
  2. The real device must be equipped with HarmonyOS operating system, debug mode should be turned on, and the corresponding signature file should be provided.

6. Added 5 new phone project templates 

DevEco Studio supports seven devices: Phone, Tablet, Car, Smart Screen (TV), Smart Wearable, Lightweight Smart Wearable (Lite Wearable), and Smart Vision. HarmonyOS application development supports Java, JS, and C/C++ programming languages.

In order to facilitate the use of developers, DevEco Studio provides ability templates for multiple device types and different development languages. In this new version, on the original basis, 5 new mobile phone (Phone) project templates are added, and there are currently 19 mobile phones (Phone) project templates. Developers can select appropriate templates according to the project wizard, easily create projects suitable for all types of equipment, and automatically generate corresponding code and resource templates.

Advertisement

7. Additional optimizations

  1. Upgrade IntelliJ IDEA base to IntelliJ IDEA CommunityEdition 2020.2.4 version (warm reminder: due to base upgrade, developers need to manually upgrade unavailable third-party plug-ins to avoid incompatibility with installed third-party plug-ins)
  2. In the debugging phase, the developer can set the installation method of the hap package. If you choose to overwrite the installation, the cached data in the installed application will be retained, and there is no need to reinstall the application and then rebuild the relevant data, which is convenient for debugging.
  3. Solved the problem of slow or failed downloading of Node.js by some developers. By integrating Node.js and pre-installing the npm warehouse of Huawei’s public cloud, the time to build a HarmonyOS application development environment is further shortened.
  4. It has been adapted to support macOS 11.2.2 version.
  5. Solved the problem that the drawable resources in XML cannot be associated.

(Via – ithome)

Most of Deng Li's smartphones are from the Huawei ecosystem and his first Huawei phone was Ascend Mate 2 (4G). As a tech enthusiast, he keeps exploring new technologies and inspects them closely. Apart from the technology world, he takes care of his garden.

HarmonyOS

These 63 Huawei devices received HarmonyOS 3 so far [Details]

Published

on

63 huawei devices harmonyos 3

HarmonyOS 3 wagon is running straight, as of December 7, 2022, it has now achieved installation on 63 Huawei devices including beta and stable releases.

According to the information released by Huawei, HarmonyOS 3 is rolled out 56 stable versions, 3 public beta, and 4 closed beta sessions, making a total of 63 active devices.

The details reveal that these devices include smartphones, tablets, smart screens, smart speakers, and smartwatches. This is one of the biggest upgrade procedures in any smart device ecosystem.

Stable devices:

Advertisement
  1. P50
  2. P50 Pro
  3. P50 Pro Collector’s Edition
  4. P50E
  5. P50 Pocket
  6. P50 Pocket Art Custom Edition
  7. Mate Xs 2
  8. Mate Xs 2 Collector’s Edition
  9. Mate X2
  10. Mate X2 4G
  11. Mate X2 Collector’s Edition
  12. Mate 40
  13. Mate 40 Pro 4G
  14. Mate 40 Pro
  15. Mate 40 Pro+
  16. Mate 40 RS Porsche Design Collector’s Edition
  17. Mate 40 RS Porsche Design
  18. Mate 40E
  19. Mate 40E Pro
  20. Mate 40E 4G
  21. P40
  22. P40 4G
  23. P40 Pro
  24. P40 Pro+
  25. Nova 10
  26. Nova 10 Pro
  27. Nova 9
  28. Nova 9 Pro
  29. Nova 8
  30. Nova 8 Pro 5G
  31. Nova 8 Pro 4G
  32. Mate 30
  33. Mate 30 5G
  34. Mate 30 Pro
  35. Mate 30 Pro 5G
  36. Mate 30 RS Porsche Design
  37. Mate 30E Pro 5G
  38. Mate Xs
  39. MatePad Pro 12.6 2021
  40. MatePad 11
  41. MatePad Pro 10.8 2021
  42. MatePad Pro 10.8
  43. MatePad Pro 5G 10.8
  44. MatePad 10.8
  45. Smart Screen V75 Pro
  46. Smart Screen V65 Pro
  47. Smart Screen V98
  48. Smart Screen V75 Super
  49. Smart Screen V85 2021
  50. Smart Screen V75 2021
  51. Smart Screen V65 2021
  52. Smart Screen V55 2021
  53. Sound X NEW
  54. Sound X 2021
  55. Sound Joy
  56. AI Speaker 2e

Public Beta:

  1. Nova 9 SE
  2. Watch 3
  3. Watch 3 Pro

Closed Beta:

  1. Nova 7 5G
  2. Nova 7 Pro 5G
  3. Nova 6
  4. Nova 6 5G

63 huawei devices harmonyos 3

However, we’re only halfway through, as plenty of old phones are waiting to get HarmonyOS 3. Including the legendary flaghip – P30 series and Mate 20 series.

HarmonyOS 3 comes with a number of new features including better Large folders with more layouts. On the other hand, it has system optimizations for better system performance. Furthermore, there are new security features that are designed to provide you with maximum safety and privacy.

63 huawei devices harmonyos 3

Continue Reading

HarmonyOS

Huawei Enjoy 50 receives HarmonyOS 2.0.0.198

Published

on

huawei enjoy 50 harmonyos 2.0.0.198

Huawei has started to rollout HarmonyOS 2.0.0.198 to Enjoy 50 smartphone in China that comes with new improvements.

According to the changelog, HarmonyOS 2.0.0.198 update for Huawei Enjoy 50 is fetching new system stability improvements along with better performance. Yet, users first have to download HarmonyOS 2.0.0.196 to upgrade to the latest version.

Recently, Huawei also sent EMUI 9.1.0.301 for Enjoy 9e with a number of new additions. The upgrade is released during the rollout for Enjoy 50.

Huawei Enjoy 50:

In June, Huawei Enjoy 50 launched with a 6.75-inch screen size, 16.7 million colors, TFT LCD type, and HD+ resolution (1600 x 720 pixels). The phone measures 168.3mm in length, 77.7mm in width, 8.98mm in thickness, and 199 grams in weight. There are three colors to choose from – Crystal Blue, Pearl White, and Midnight Black.

Advertisement

It brings dual rear camera system consisting of a 13-megapixel main camera (f/1.8 aperture) and a 2MP depth-of-field camera (f/2.4 aperture). The rear camera has modes of Normal photo, portrait photo, professional mode, and panorama mode.

Update Notes:

The latest software update for Huawei Enjoy 50 is expanding in batches and may take some to cover all of the available models. We suggest you make a backup of important files, to prevent unnecessary data loss.

Also, make sure your smartphone is not rooted and updated to the latest HarmonyOS firmware.

huawei enjoy 50 harmonyos 2.0.0.198

Advertisement
Continue Reading

HarmonyOS

Huawei Mate 50 series gets December 2022 patch

Published

on

huawei mate 50 pro

Huawei is rolling out December 2022 software patch for Mate 50 series smartphones in China. However, it’s just a small patch that correlates with some important optimizations for Mate 50 devices.

According to the changelog, the December 2022 patch for the Huawei Mate 50 series brings system stability optimizations with new improvements to bring better performance.

It’s further revealed that the patch is distributed with HarmonyOS 3.0.0.179patch02 for – Mate 50, Mate 50 Pro, and Mate 50 RS Porsche Design. Since it’s a patch, the OTA will size only 16.26MB. On the other hand, it’s available only for the HarmonyOS 3 version of the Mate 50 lineup.

After upgrading to the latest software patch, a Huawei Mate 50 standard user reported a camera telephoto bug. The user reports that the 10X telephoto zoom lost clarity over the past version.

Advertisement

The user also posted a video describing this issue. It felt like the camera failed to focus on the subject, similar to Huawei P30 Pro.

A number of users replied this to bug. Saying that it could be an issue with the day and nighttime light arrangements. While some suggest that this could be fixed with the next upgrade.

Huawei Mate 50 December 2022 Software Patch

Performance update:

Last month, Huawei sent a performance improvement update for Mate 50 series devices. According to our report, the phone received a substantial boost in GPU performance with HarmonyOS 3.0.0.168.

A test on the Genshin Impact game revealed that the Huawei Mate 50 Pro delivers frame rate improvements along with the stability of the smartphone.

Advertisement

To download this software update, Huawei Mate 50 owners can look into the My Huawei app and then tap on the updates section to get the latest firmware version. However, users are recommended to make a backup of important files as a safety precaution.

Continue Reading