Connect with us

Huawei News

Huawei released DevEco Studio 2.1 Beta 3 with these 6 new changes

Published

on

DevEco Studio 2.1 Beta 3

Huawei has officially launched the DevEco Studio 1.0 on the official website of Huawei Developers last September. HUAWEI DevEco Studio 1.0 supports developers to complete APP development, smart hardware device development for Huawei’s 1+8+N ecosystem, and distributed OS and more. By using DevEco Studio, developers can more efficiently develop applications with HarmonyOS distributed capabilities, thereby improving innovation efficiency.

On December 16, 2020, HUAWEI DevEco Studio released version 2.0 Beta 3. Huawei has begun sending the new version for DevEco Studio 2.1 Beta 3 that brings a number of new features and improvements, which help out developers and enhance the innovation efficiency.

DevEco is Huawei’s integrated development environment (IDE) that provides templates for developers to create, develop, compile, debug, test, and deploy E2E HarmonyOS application development services. Check whats new in the Huawei DevEco Studio 2.1 Beta 3.

The previewer adds a two-way preview function:

During the HarmonyOS application development process, developers can 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.), 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 investigation, 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 Hongmeng mobile phone OS and other necessary development tools, Huawei DevEco Studio 2.1 Beta 3 released: two-way preview, Java UI interface data simulation…open the two-way preview function by clicking on the icon on the previewer interface.

  • 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.
  • Similarly, if you modify the source code in the code editor, the previewer interface and attribute list will be refreshed in real time.

DevEco Studio 2.1 Beta 3 - Image 1

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

Advertisement

In the preview scene, 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.

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 noting that DevEco Studio 2.1 Beta3 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 two highlights, 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.

DevEco Studio 2.1 Beta 3 - Image 2

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 Beta3 has added a new visual configuration function.

The editor has a new resource creation wizard function

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 Beta3 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.

DevEco Studio 2.1 Beta 3 - Image 4

New Java testing framework

Advertisement

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.

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:

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

5 new phone project templates have been added

DevEco Studio supports seven devices: Phone, Tablet, Car, Smart Screen (TV), Smart Wearable, Lightweight Smart Wearable (Lite Wearable) and Smart Vision (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 phone (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

(Via)

Join Huawei Update (Social Links) – FacebookTwitter & Telegram

Huawei News

Huawei Smart Screen S5 Pro sale details

Published

on

By

Huawei Smart Screen S5 Pro (1)

Huawei officially started the sale of its new Smart Screen S5 Pro. The latest smart screen comes with three sizes of 65/75/85 inches and supports Huawei Lingxi pointing remote control, 4K super projection and other functions.

Huawei Smart Screen S5 Pro sale price

  • 65 inches 6499 yuan
  • 75 inches 8499 yuan
  • 86 inches 11999 yuan

The entire Huawei Smart Screen S5 Pro series supports Lingxi pointing remote control , which can realize operations such as sliding, tapping, dragging, circling and jumping; the smart screen supports the super desktop function, which can realize large-screen operation of mobile phone apps.

Huawei Smart Screen S5 Pro is equipped with a 4K flagship main core + AI vision chip, which can realize functions such as smooth portrait tracking, AI fitness, children’s sitting posture and distance reminders, AI somatosensory games, ambient light perception, etc.; it has 3 pre-installed HDMI2.1 interfaces, standard 4GB+128GB storage combination, and supports dual-band Wi-Fi 6.

The Huawei Smart Screen S5 Pro series is equipped with a four-unit audio system as standard, which supports surround stereo effects. Users can cast 4K video content from apps such as Huawei Video, Bilibili, Mango TV, Tencent Video, Youku Video, and iQiyi to the smart screen , with a frame rate of 60FPS and a delay of about 80 milliseconds.

Huawei Smart Screen S5 Pro (1)

Continue Reading

Huawei News

Huawei MateBook GT laptop arriving soon

Published

on

By

Huawei MateBook GT

Huawei is expected to release a new MateBook GT 14 laptop. The device appeared on the Huawei Smart Life App in May this year. The 3C certification information shows that the computer model is ENZH, produced by Wuxi Dengyuan Electronic Technology Co., Ltd., and is equipped with the same 140W power adapter as the MateBook X Pro 2024.

As per the Geekbench benchmark database, the ENZH laptops have three processor versions: Intel Core Ultra 5 125H / Ultra 7 155H / Ultra 9 185H .

In addition, the launch of Hongmeng Smart S9 and Huawei’s all-scenario new products has been officially announced to be held on August 6, which will bring a variety of products such as headphones, mobile phones, smart screens, etc.

Huawei MateBook GT

Continue Reading

Huawei News

Huawei Smart Screen S5 Pro comes with 4 speakers

Published

on

By

Huawei Smart Screen S5 Pro comes with 4 speakers

Huawei Smart Screen S5 Pro is all set to go on sale tomorrow. It has now appeared in the Huawei Smart Life App and has three size versions to choose from.

Huawei Smart Screen S5 Pro has three sizes, all equipped with 4 speakers as standard , and no ads when turned on by default. Huawei Smart Screen S5 Pro series sizes are 65 inches, 75 inches and 86 inches.

The screen material is LCD, supports 120Hz/240Hz refresh rate, and the entire series is standard with 4 speakers and 4GB+128GB memory combination, and supports dual-band WiFi 6 and HDMI 2.1.

Huawei Smart Screen S5 Pro comes with 4 speakers

Continue Reading

Most Popular