Initial experience of using harmonyos 2.0 mobile version – Mobile Developer (beta version)

Time:2021-8-22

At 10 a.m. on December 16, Huawei held the Huawei Developer Day and the beta release of harmony OS 2.0 mobile developers in Beijing. Huawei announced this time that it will open complete harmonyos 2.0 system capabilities, rich APIs (application development interfaces), and powerful development tools deveco studio and other technical equipment to mobile phone developers. Developers can visit the official website of Huawei developer alliance to apply for the beta upgrade of harmonyos 2.0 mobile developers.

▣ address of blogger’s main station:Smiling waves 【www.cztcms.cn】

` other platforms of bloggers:CSDN Jian Shu Open source China Si no Huawei cloud blog


Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

Wang Chenglu, President of Huawei’s consumer business software department, said: “the epoch-making harmonyos has reconstructed the relationship between people, devices and scenes. In the future, it is no longer the product that restricts the user’s use scenario, but the user’s scenario defines the form of the device. Harmonyos will not only bring users more device entrances to obtain application services, but also bring new super services and super applications to create a subversive experience for our life.
Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

I visited this morningHarmony OS 2.0 official websiteI found that the Mobile SDK has also been synchronized online, so I can’t wait to experience the harmonyos 2.0 mobile simulator. First of all, you must download deveco studio, the official development tool of Huawei harmony OS 2.0.

For download and installation tutorials, please refer to my previous blog:Introduction to Huawei Hongmeng system application development tool deveco studio

If it has been installed before, upgrade the software. The latest version is2.0.12.201。 Click on the of the softwarehelpThe software can be updated.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

After the software update is completed, you can create a new oneHarmonyOS 2.0 Mobile apps and tablet apps.

Let’s start — the first experience of using harmonyos 2.0 mobile version

1、 New Hongmeng application

1. Open deveco Studio software and clickCreate HamonyOS Project

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

2. You can see that there are more mobile and tablet applications than the previous generation. Choose newPhone(mobile app), click next.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

3. Configure the items according to the following figure, and click finish.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

4. The first time you run the project, it will be downloaded automaticallygradle(Project Manager) and wait for the download to complete.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

5. The next step is a long compilation process, which takes about 10 minutes. Generally, there is no error.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

2、 Unveil the mystery of harmonyos 2.0 mobile version

1. After the project is compiled, let’s see what the Hongmeng operating system looks like, and click Tools – HVD manager.

At this time, the browser will pop up a window. Log in to the Huawei account in the pop-up window, and then click allow. You can refer to the tutorial mentioned earlier in the article.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

2. Enter the simulator management interface and finally see the installedHarmonyOS 2.0 The virtual models of mobile phones and tablets areP40andMatePad Pro

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

3. Click the P40 mobile phone running button on the simulator management interface, and the running window of mobile phone simulator will pop up automatically at the top right of deveco Studio software.

The upper interface of the mobile phone version of Hongmeng system uses emui 11, so the interface looks no different from the current Huawei mobile phone;
The bottom layer of the operating system uses harmonyos 2.0 independently developed by Huawei, which greatly improves the running speed of the mobile phone compared with Android.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

4. Open the phone settings and clickAbout mobile phones, you can see bigHarmony OSA few words, the system version is the first test version (beta 1).

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

5. View the phone status bar.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

6. After checking the mobile phone, I also want to see what the tablet looks like. Click the matepad Pro run button on the simulator management interface, and the running window of the flat panel simulator will pop up automatically at the top right of the deveco Studio software.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

7. Open the tablet settings and clickAbout tablets, you can also see bigHarmony OSA few words, the system version is the first test version (beta 1).

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

3、 Project run, test run results

1. Modificationcongfig.jsonIn the filelabelLabel and apply custom naming (of course, you can run the project directly without any modification)

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

2. Modify the text displayed in the main interface.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

3. Click the run button in the upper right corner of the software to see that my project has successfully run on Hongmeng system,My first successful development of harmonyos 2.0 mobile application

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

4. Back to the desktop, you can also see that the project we just created is on the mobile desktop.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

5. InbuildYou can also find the newly compiled project software installation package (HAP file) in the directory.

Initial experience of using harmonyos 2.0 mobile version - Mobile Developer (beta version)

4、 Experience and summary

In the morning, I watched the press conference of harmonyos 2.0 mobile phone developer (beta version). In the afternoon, I had a practical experience of Hongmeng system. It was really very good. I felt that I had discovered the new world. I hope Hongmeng system will be better and better! Unfortunately, the mobile version of Hongmeng system can only be provided to developers, and the commercial upgrade may be next year.