After installing Node.js and DevEco, we can start our journey of hongmeng App development!

Start DevEco for the first time

Launch the DevEco software you installed above from the desktop icon shown in the image above.

Initial screen.

The screen shows some basic setup information, and directly select [Next] to continue.

Select Accept and press Next to continue.

Installation process is quick.

Download complete.

Create HelloHarmony

Select Create HarmonyOS Project.

The Device bar has various types of devices that can be developed, which should cover all devices that can use Hongmeng OS. Here we choose [Phone]. The Template bar also has a variety of templates to choose from, starting with Empty Feature Ability (Java). Finally choose [Next] to continue.

Fill in the main information of the project as required: The project name is HelloHarmony; Project location can be selected as required. Finally select [Finish].

If the above dialog box appears, select Allow access.

After the project is created, DevEco looks like the image above.

Update the Gradle plugin

If the yellow message box appears in the upper right corner of DevEco after the project is created, it indicates that the Gradle plug-in has failed to update. This can be manually updated by referring to the page below.

Developer.harmonyos.com/cn/docs/doc… Note that if the browser download speed may be slow, it is best to use the download tool to download. After the plug-in is updated successfully, the lower right area of the screen is displayed as follows:

Modify screen presentation information

Open the SRC/main/resources/base/layout/ability_main. The XML file, modify text information content as “hello, HongMeng!”

Starting a Virtual Device

Select [Tools] – [HVD Manager] from the main menu.

The following message is displayed when you start the HVD manager:

After selecting [Agree] and logging in to the developer account, the following virtual device selection screen will appear:

Choose P40.

P40 mobile phone simulator screen appears on the right side of the screen, also very fast!

Start the application

You can launch HelloHarmny from the menu or toolbar as shown below.

The startup mode can be direct execution or debugging.

After selecting [HUAWEI Ana-an00] and clicking [OK], the simulator displays as follows:

Hello, Hongmeng!

Introduce new book

Live Python Design Patterns is the author’s latest book, keep your eyes open!

The book uses Python’s standard GUI toolkit, Tkinter, to illustrate each of the 23 design patterns with executable examples. On the one hand, readers can understand the application scenarios and problems of each design pattern in real software development work. On the other hand, by explaining the process of solving these problems, readers can understand how to judge the advantages and disadvantages of using design patterns when writing code, and make reasonable use of design patterns.

Readers who are interested in design patterns and want to learn and use them can quickly cross the threshold from understanding to using them. Readers wishing to learn Python GUI programming can use the examples in this book as a design and development reference; Readers who use Python for image analysis and data processing can quickly build their own systems based on the examples in this book.


Find this article helpful? Please share it with more people.

Focus on wechat public number [Object-oriented Thinking] Easy learning every day!

Object-oriented development, object-oriented thinking!