When a developer compiles a project, the compilation fails, and the message "This device type does not match project profile" is displayed, because the device type configured in "config.json" does not match the device type for debugging, and "deviceType" needs to be configured in the "module" tag.
AR (HarmonyOSAbilityResources) Different HAPs (HarmonyOSAbilityPackage), HAR cannot be installed and run on the device independently, and can only be referenced as a dependency of the application module.
In JavaScript UI development, for wearable projects and TV projects, the name of the homepage can be not index, and the first page in the pages configuration list is the homepage; for the litewearable project, the name of the homepage must be index.
Intent is a carrier for transmitting information between objects.
In the Javascript UI framework, to realize the jump between pages, you need to specify the uri in the page routing router to find the target page.
When a developer is developing a HarmonyOS application, if part of the text in the value field of the JSON resource files of different types of elements in the Element directory does not need to be processed by the translator and will not be displayed on the application interface, a special structure can be used to identify the content that does not need to be translated
In a HarmonyOS application, there must be one and only one HAP of the feature type.
The Service Ability created by a developer does not have a user interface. Can be launched by other apps. When the user switches to another application, the Service will be killed in the background.
The MainAbility of a HarmonyOS application has multiple AbilitySlices, and when the AbilitySlice health state is switched, the MainAbility state is INACTIVE.
Sservice Abilit calls the onCommand() method after the creation is completed, and the method can be called once when the client starts the service for the first time, and there is no need to call it again in the future
In order to improve the image quality of network source images, developers can use the Instant Messaging (IM) class intent recognition interface provided by HarmoyOS.
A user grants permission X to application A of a certain device, and on the device, application A persists the state of this permission grant and can call all interfaces controlled by permission X at any time.
HarmonyOS developers can use the "chos. Permission.CET_NET7ORK_INFO request permission to Modify Network Connection Status.
A Page Ability (hereinafter referred to as a "Page") may consist of one or more AbilitySlice, which refers to the sum of a single page of an application and its controllogic.
Although a Page can contain multiple AbilitySlices, when a Page enters the foreground, the interface displays only one Abilitylice by default.
PDF + Testing Engine
|
---|
$66 |
Testing Engine
|
---|
$50 |
PDF (Q&A)
|
---|
$42 |
Huawei Free Exams |
---|
![]() |