The Ark Development Framework of HarmonyOS includes a Web-like development paradigm based on TS extensions and a declarative development paradigm based on JS extensions.
What are the common problems in uploading software packages during the listing process of HarmonyOS applications/metaservices?
When a user is on a video call,Want to migrate the mobile phone video to the smart screen for playback,When clicking Migrate,Find that the smart screen is already in theoptional list,What are the correct descriptions of the scene?
What are the following types of task dispensers that HarmonyOS provides for developers?
When developing HarmonyOS applications, if the client and server need to communicate across processes, you can use idl to define programming interfaces that are recognized by both.
When developing an application, a developer uses the WLAN P2P function to realize point-to-point data transmission between devices. Function 2, Create and remove groups, Function 3, Initiate a connection to the peer device.Which of the above functions is correct in the following descriptions?
Which of the following can set the rounded corner effect of the ShapeElement?
When using EventHandler to implement thread interrogation communication, if EventRurner takes out the InnerEvent event, EventRunner will directly process the event on the new thread.
What are the following options that belong to the JavaScript UI framework?
Which of the following decorators can be used to manage the state of variables in custom components?
What development tools do programmers do not need to install when developing HarmonyOS mobile apps?
The user and provider of the service card do not require permanent operation, and when it is necessary to add, remove, or request to update the card, the card management service will pull up the card provider to obtain the card information.
HarmonyOS supports on-demand elastic deployment of a variety of terminal devices.
Which modules in the following figure can be installed and operated independently?
A developer is using CommonEventData to encapsulate information about ordered public events for data processing when publishing, distributing, and receiving. What do I need to pay attention to when developing?
A developer needs to use the emulator in DevEco Studio, click to log in to the emulator and enter your HUAWEI ID, and the browser will directly jump to the real-name authentication interface. What are the reasons for this problem?
What are the componentization characteristics of custom components?
What are the parameters of animation in attribute animation?
The main axis of the Row container is horizontal, and the cross axis is vertical, and its parameter type is VerticalAlign, and VerticalAlign defines the following types?
In HarmonyOS, when switching between pages, if you use Ability Switching, it is equivalent to constantly switching new pages in the same window, and if you use AbilitySlice to switch, a new window will pop up.
When a developer is developing a flight booking application, he needs to use the sliding selector DatePicker in the date selection of air tickets, and in order to improve the user experience, he needs to set the color of a single year/month/day item in operation to blue (#0000FF), which of the following items can meet the development needs?
The KV data model is a SQL-type database whose data is organized, indexed, and stored in the form of key-value pairs.
An engineer wrote the following code, which items are correct in the description of the following code?
@Entity(tableName="user",ignoredColumns={"ignoredColumn1","ignoredColumn2"},indices ={@Index(value ={"firstName","lastName"),name="name_index",unique =true)})
HarmonyOS provides developers with a HiLog logging system, which of the following log levels are defined in HiLog?
What are the types of background agent reminder services?
What are the boot modes of UIAbility?
HarmonyOS provides the Al capability of speech recognition, which can use machine learning technology to analyze the content of text messages of users in SMS or chat applications, and identify the user intent represented by the message content.
A software development engineer will debug a piece of code, which of the following methods can be used?
A Page Ability (hereinafter referred to as "Page") may consist of one or more AbilitySlice, which refers to the sum of a single page of an application and its control logic.
Which of the following subsystems in HarmonyOS belongs to the Enhanced Software Services subsystem?
What is the correct description of the http module?
What functions does UIAbility's lifecycle include?
Regarding the Tabs component and the TabContent component, the following description is correct
If a developer uses the startAbility() method provided in Ability to start a Service, what are the correct descriptions of starting the Service?
Suppose that multiple AbilitySlice are associated in MainAbility, and multiple AbilitySlice are switched in the same page, the lifecycle of MainAbility and all AbilitySlice is synchronized.
What services will be automatically activated after a HarmonyOS Cloud development project is created?
In the process of application development, a developer uses the global concurrent task distributor to dispatch tasks, and if a specific task needs to be executed 10 times, the developer can use applyDispatch to execute the task multiple times.
What features can developers use to implement collaborative identity authentication through HarmonyOS?
What capabilities does the public event service provide for the application?
What attributes are supported by attribute animations?
When testing the Bluetooth Low Energy feature of HarmonyOS, a developer needs to make the central device perform Bluetooth scanning. Which of the following descriptions of the developer's actions are correct?
There is an application A that occupies a large amount of memory and a background service B on the mobile phone, but there is no binding relationship between the two. What are the following scenarios that may cause Service B to be stopped?
A user migrated video from his mobile phone to a smart screen for playback, using the distributed task scheduling capability of HarmonyOS. In this scenario, the process of connecting the mobile phone to the playback software of the smart screen belongs to the remote connection.
Mobile terminal devices have penetrated into all aspects of people's daily life, such as checking the weather, news and anecdotes of the city, traveling taxi, travel navigation, and sports records. These accustomed activities are inseparable from locating the location of the user's terminal equipment. What positioning technologies does HarmonyOS's location services subsystem provide?
If you need to use a composite animation, you can combine multiple animated objects and add them to the AnimatorGroup. The AnimatorGroup provides two methods: runSerially() and runParallel(). Indicates that the animation starts at the same time and that the animation starts sequentially.
To publish an app, a HarmonyOS developer needs to use a certificate request file (Cerificate Signing Request) to apply for a digital certificate from AppGallery Connect.
Which of the following processes does the HarmonyOS data lifecycle consist of?
In order to solve the problem of safety risks when walking or cycling, a travel navigation company uses HarmoryOS to push mobile navigation reminders to its watch.
What types of conversion functions are supported for static animations in HarmonyOS?
Which of the following descriptions of the global concurrent task distributor and the concurrent task distributor is correct?
What are the parts of the HarmonyOS cloud development project?
What are the data management methods provided by HarmonyOS?
When a developer uses Page Ability to open a ServiceAbility, he needs to pass parameters through Intent, at what stage is the parameter obtained in the whole process null?
onStart( ) in A S ervice.
A HarmonyOS developerdevelops an application based on distributed data services, and the developer uses device A, device B, and device C to test the functionality of the application in a distributed scenario. In the test, after device A successfully adds, deletes, and modifies data, device B and device C cannot read the updated data immediately, but after a certain time window, the data of the three devices will reach the same state. In the preceding scenario, what kind of consistency does the application conform to in a distributed database?
After the creation of a custom component of the Web development paradigm, which of the following callbacks will be triggered when it is added to the Page component tree?
In HarmonyOS, which of the following scenarios is the application responsible for instantiation?
Both the provider and user of DataAbility use a URI (UnifomResourceldentifier) to identify a specific data, and the format of the URI is as follows:
Scheme://[authority]/[path][? query][#fragment]
Which is the correct URI description in the cross-device scenario and the local device scenario?
If a UI is no longer visible to the user, but you don't want to destroy it, which method will the system call to release the corresponding resources?
If a developer needs to solve problems such as insufficient image resolution and image compression noise, which of the following AI capabilities can be used by HarmonyOS?
Now a Text component is used as the title of a page, and the Text needs to be set to be invisible, but it still occupies the current layout space, which of the following is correct?
In the HarmonyOSsystem architecture, which of the following provides unified peripheral access capabilities and driver development management framework?
A developer is developing a ticket booking application, in the selection of the location of the ticket, you need to use the slide selector Picker, in order to highlight the selected text, the developer sets the rendering effect that the selected text margin is greater thanthe ordinary text margin. Which of the following settings are correct?
If there are 3 Ability sharing a Service instance, how can I exit the Service instance?
The developer uses device A (local device) to control device B (remote device) to open the album, which distributed task scheduling capability is used in this scenario?
fter a developer sets :ohos:layout_alignment="horizontal_center" in the Text component, he writes: text.setMarginRight (600) in the code, where is the Text displayed in the parent layout?
HarmonyOSprovides developers with different abilities according to different application scenarios, for example, if a developer plans to develop a background music playback function, which of the following is correct about the configuration of the ability in config.json?
Before developing the NFC function, a HarmonyOS developer must first confirm whether the device supports the NFC function and whether the NFC is turned on.
If a developer wants to use the JavaScript UI framework to develop a graffiti application that allows users to draw custom graphics, which of the following components can be used by the developer?
Which of the following scenarios does not use encoding technology?
The HarmonyOS video module supports the development of video services and the opening of the ecosystem, allowing developers to easily play, operate, and develop new functions of video media through the open interfaces. Video playback includes playback controls, playback settings, and playback queries, such as start/stop playback, playback speed settings, and whether to loop playback. When developing a video playback feature, which of the following steps is correct?
How do I define the permissionscorrectly when a developer needs to customize the permissions for a third-party application forHarmony OS?
What is the process of cross-terminal migration from an application on HarmonyOS device A to the application on device B by calling the distributed task scheduling capability to continue sbility?
Inwhat form will the application package of Harmony OS be released and put on the shelves?
When a developer migrates pictures on his mobile phone to a large screen, the interface layout automatically switches from vertical to horizontal; When the image is migrated, the image is migrated from the large screen to the mobile phone, and the interface layout is automatically switched from horizontal to vertical. Excuse me, how did this developer implement this feature?
How do I define the permissionscorrectly when a developer needs to customize the permissions for the Harmony OS third-party application?
When a developer uses the Text component for development, due to the long length of the input string, the content in the middle of the text needs to be truncated with ellipses. Which of the following codes can be used to achieve the above requirements?
Browse articles in the reading app on your phone, migrate to the tablet to continue viewing, and exit the reading app on your phone. Which HarmonyOS streaming solution is used in this scenario?
How to realize distributed communication betweentwo existing Harmony OS devices?
WhenthePage of Harmony OS executes the onForeground() callback, which of the following states will the Page return to first?
When a developer specifies a music playback service through an intent when starting a remote service, device A (local device) can start the music playback capability of device B (remote device).
Which description of the HarmonyOS clipboard can be correctly interpreted in the following scenarios?
A developer defines an entity class
Student.java and use the following code to construct the table:
@Entity(tableName ="student", ignoredColums
=["ignoredColumn1","ignoredColumn2", indices
= (@Index(value =("firstName.","lastName",
name="name_index", unique = true)))
pub1ic class User extends OrmObject{
@PrimaryKey(autoGenerate= true)
private Integer userld;
private String firstName;
private String lastName;
private int age;
private doub1e balance;
private int ignoredColumn1;
private int ignoredColumn2;
}
Which of the following descriptions of this code is wrong?
Thedefault size of shared memory in Harmony OS is ?
When a developer is developing a game application, in order to display the download progress of game resources, it is necessary to use a horizontal linear progress bar, which of the following components can help the developer complete this function?
In HarmonyOS, which of the following scenarios is the application responsible for instantiation?
Which of the following descriptions of Page and AbilitySlice is correct?
Which of the following is NOT acomponent of the Harmony OS object-relational mapping database?
When the system creates a page instance for the first time, which method will be called?
It is necessary to apply for the permission of certain operation sensitive capabilities. Which of the following is NOT considered a sensitive capability?
When a developer is developing a game application, in order to display the download progress of game resources, it is necessary to use a circular progress bar, which of the following components can help the developer complete this function?
The key generated by the developer contains the public key and the private key used in asymmetric encryption, and in what format is the key stored in the key file?
A developer tries to update the text of Text directly in a non-UI thread, but the update fails, how to solve the problem of updating the UI of the non-UI thread in HarmomyOS??
Which of the following modules does a developer need to call to check whether the HarmonyOS cellular data service is enabled?
A developer uses the threading function of HarmonyoS and writes the following code, which is the correct order of the execution result of the code?
TaskDispatcher globalTaskDispatcher =
getGlobalTaskDispatcher(TaskPriority.DEFAULT);
globalTaskDispatcher.syncDispatch(new
Runnable(){
@Override
public void run(){
HiLog.info (LABEL_LOG,"sync task1 run");//1
HiLog.info (LABEL_LOG, "after sync task1");//2
globalTaskDispatcher.syncDispatch(new
Runnable(){
@0verride
pub1ic void run(){
HiLog.info(LABEL_LOG,"sync task2 run"); 3
}
});
HiLog.info (LABEL_LOG, "after sync task2");//4
What is the "1" in HarmonyOS's "1+8+N" strategy?
Which of the following interfaces can repeatedly call a function with a fixed time delay between each call?
HarmonyOS's AI capability provides the function of generating QR codes, for example, if you need to generate a QR code for each mobile phone contact, which of the following describes the QR code correctly?
When a developer designs a news browsing application, he needs to achieve the effect that the news list and news details are not displayed on the same page, which of the following needs to be created by the developer?
When a developer designs a navigation application and needs the system to provide accurate positioning, which subsystem will be used?
If a developer wants to develop a file background download function, there needs to be a Page Ability to provide UI pages, and a Service Ability to provide the background file download function. Which of the following can invoke Service Ability in Page Ability?
A developer has developed an Image component and written the following code, which of the following descriptions of the component is correct?
When the user clicks on a song from the music list page and jumps to the playback interface of the song, the principle is that the page route routes to the destination page according to which of the following?
In HarmonyOS application development, where can commonly used backgrounds, such as common text backgrounds and button backgrounds, be placed?
When a developer is developing a HarmonyOSapplication, if he needs to annotate information for a certain resource file of different types of elements in the Element directory to facilitate the understanding and use of the resource, which of the following methods can be added (XXX represents the comment text)?
When using HarmonyOS in distributed terminal scenarios, which of the following capabilities can be used to ensure that the device is safe and reliable?
Which of the following accounts does the authentication service support?
When a developer is developing a UI, he writes the following code, which of the following is the correct implementation effect?
What kind of permissions do you need to use Image to load network images?
The library file is the third-party code that the application depends, which are the correct ways to use the following library files?
In the process of debugging Harmomyos applications, it is a common debugging method for developers to "check whether the change process of variables meets the expected results". To this end, DevEcoStudio provides a visualization of debug variables, which of the following forms can be presented?
Which of the following functions can be achieved through the sidebar button of the remote simulator?
In the distributed terminal scenario, the "correct person" refers to the data accessor and business operator who have passed identity authentication. The "right person" is a prerequisite to ensure that user data is not illegally accessed and user privacy is not leaked. What does HarmonyOS use to implement collaborative authentication?
Which of the following properties about Web components is incorrect?
When a developer develops a HarmonyOS application and uses an intent pass object, which of the following descriptions of intent are correct?
With regard to the characteristics of @State state data, the following description is incorrect
Which of the following development languages can a developer use when developing a HarmonyOS smart screen application?
HarmonyOS is designed for 1+8+N full-scene experience, which of the following devices belongs to the "8" in 1+8+N?
When creating an application, which field in the app.json5 or config.json file must be the same as the application package name?
In HarmonyOS, Intents are the carriers for transferring information between objects, and which of the following items can be set through Intents?
Regarding Hongmeng's atomic service, the following statement is correct
What is the minimum API version supported by HarmonyOS Cloud Development?
Which of the following items are correctly described about the HarmonyOS distributed database?
Which of the following situations will not call back the onFinish function?
Which of the following is part of the basic software service subset in HarmonyOS?
Which of the following features does HarmonyOS smart home devices include?
When a developer calls Particle Ability (PA) with FA (Feature Ability), callAbility returns the error "Internal ability not register.", what key steps does the developer need to check?
A developer designed an application, when the user receives a notification, if the user clicks on the notification, it will jump to a new page, and if the notification is not clicked, the new page will not be triggered.
When a developer develops an online education application, which of the following components can be combined into a single-choice question if the studentAnswer:ing interface has multiple choice questions and multiple choice questions?
Which of the following methods can jump to a new page and destroy the current page?
If the HarmonyOS user displays the navigation information on the mobile phone and the smart watchat the same time, if the smart watch is out of power, causing the navigation information to stop displaying, which callback will the navigation app on the mobile phone distribute to receive the termination notification?
A PageA contains Ability SliceA1 and AbilitySliceA2, which is displayed as AbilitySliceA1 by default. What are the following steps if you want to navigate directly to PageA's AbilitySliceA2 in PageB on the current device?
Which of the following NFC functions can developers use when developing apps based on HarmonyOS?
The declarative development paradigm based on TS extensions provides a series of basic components, the following code describes the structure of a simple page, read this code, which of the following are built-in components?
HarmonyOS Converged Search provides developers with search-engine-level full-text search capabilities to provide users with a more accurate and efficient search experience.
Which of the following components cannot contain subcomponents?
A HarmonyOS application developer displays three flowers in the form of a list, and the interaction logic code of the page is as follows.
When publishing an application, I need to create a certificate, and what type of certificate type should I choose?
Which of the following subsystems in the HarmonyOS subsystem belongs to the hardware service subsystem set?
Which of the following interfaces is NOT an API provided by the preference?
Which of the following breakpoint management functions does the JS code type support?
Which of the following component hierarchies is wrong?
What components can the animation property be used in?
The maximum number of simultaneous activations of a Worker thread
When a user uses the device camera to flip a blurry text file, he expects the camera app to provide a plug-in to improve the recognition of the text. Which of the following HarmonyOS service features is best suited to meet the needs of this user?
When a developer develops a JavaScript application on the smart screen,Want to do some static animation,If you want to move a component in the horizontal direction by 200px,Which of the following style configurations is correct?
When a programmer develops an online education application, the studentAnswer:ing interface has multiple choice questions and multiple choice questions, which of the following components is suitable for displaying multiple choice questions?
There are two Text components in the Row component, if the justifyContent alignment method is used, which of the following properties can be aligned to the left and right ends
What are the following types of transition animations in the declarative development paradigm?
When a developer clicks the exit button of an application to release Page Ability resources, which callback method in the Page Ability lifecycle will be triggered?
When creating an application, which field in the config.json file must be the same as the application package name?
What functions does HarmonyOS provide in app data management to enable developers to seamlessly connect app data between different devices?
ArkTS Stage model supports API Version 9, is it correct about its project directory structure?
Aoh-package.json5 is used to store application-level configuration information, including signatures, product configurations, etc
Bbuild-profile.json5 is used to configure the entry and package name of the third-party package declaration file
Cmodule.json5 contains the configuration information of HAP, the configuration information applied to a specific device, and the global configuration information of the application
Dapp.json5 is used to write application-level compilation and build task scripts
258 DevEco Studio provides an emulator for developers to run and debug HarmonyOS applications/services.
A localemulator is created and runs on the local machine and requires login authorization
BThe local emulator supports functions such as volume adjustment, battery level adjustment, screen rotation, etc
CYou don't need to sign your application/service when you install it on your local emulator
DDevEco Studio will start the compilation build of the application/service, and the application/service will run on the local simulator after completion
259. After installing Lottie through OHPM, in which file will the relevant configuration information be generated?
A developer is writing a piece of code to control the access rights of an Ability
Apps with the ohos.permission.CAMERA permission can access this ability. The relevant code completed by the developer in config.json is as follows:
"abilities": [
{
"name": ". MainAbility",
"description":
"Sstring:description_main_abi1ity",
"icon" : "$media:hiworld.png",
"label": "HiCamera",
"1aunchType": "standard",
"orientation": "portrait",
"visible": false,______________________________
} ]
Which of the following should the developer add to the horizontal line?
Which of the following modules needs to be imported for page routing?
A HarmonyOS developer uses the EventHandler mechanism to handle four events: A, B, C, and D, where event D retains the default priority, and the priority properties of the other three events are set as follows:
Event A: Priority.IMMEDIATE
Event B: Priority.HIGH
Event C: Priority.IDLE
Which of the following accounts of the above events is correct?
With the help of the AI-enabled capabilities of HarmonyOS, it can detect and recognize the textof image sources such as document remakes and street view reproductions, and can also be integrated into other applications to provide text detection and recognition functions, and provide translation, search and other related services based on the recognition results. This is by taking advantage of the super-resolution of text and images in AI.
Huawei's latest mobile phones、HarmonyOS system is pre-installed in the smart screen.Among them, the mobile phone does not belong to the HarmonyOS large system device.The smart screen belongs to the large system device。
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.
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.
If a developer wants to develop a file background download function, there needs to be a Page Ability to provide U pages, and a Service Ability to provide the background file download function. If you want to perform some operations after connecting to the Service Ability in the Page Ability, you need to implement the onAbilityConnectDone() method in the Page Ability.
When developing the list component in the JavaScript UI framework, you can use the data of the Map type to dynamically bind the data.
The network management module of HarmonyOS can realize the communication between different processes of the machine, and the communication supports streaming socket technology.
Suppose that multiple AbilitySlice are associated in MainAbility, and multiple AbilitySlice are switched in the same page, the lifecycle of MainAbility and all AbilitySlice is synchronized.
A user uses the HarmonyOS distributed task scheduling capability to migrate mobile phone videos to the smart screen for playback. In this scenario, the process of finding whether the smart screen has the same playback software is a global query.
In order to avoid affecting the startup speed, developers need to postpone the execution of non-essential time-consuming tasks until the time of use, instead of performing all initializations in the onStart() method.
When designing a JavaScript UI based on HarmonyOS, if the text component itself cannot be focused, the focus cannot be moved to the component, and the focusableattribute of text is set to true. text component.
When users use mobile phones, they will find that the phone number in the text message is often highlighted, and they can dial directly. This is a typical application scenario for entity recognition Al.
When a developer has multiple versions of the object-relational mapping database, and the developer calls the BookStoreUpgrade class to upgrade the database version, the version number of the BookStoreUpgrade class is configured as "2", and the actual version number of the current BookStore.db is "1".
When a developer starts a music player on a remote device, he or she may not fill in the Deviceld of the remote device.
In HarmonyOS's "1+8+N" strategy, smart microwave oven devices belong to "N" devices.
HarmonyOS's distributed soft bus enables distributed management of application data and user data.
If you need to use a composite animation, you can combine multiple animation objects and add them to the AnimatorGroup. AnimatorGroup provides two methods: runserially() and runParallel(), which indicate that the animation starts sequentially and the animation starts at the same time, respectively
When using the location capability of HarmonyOS, developers need to apply for the LOCATION permission, which is a non-sensitive permission and needs to be declared in config.json.
The MainAbility of a HarmonyOS application has multiple AbilitySlices, and when the AbilitySlice health state is switched, the MainAbility state is INACTIVE.
Components can neither be displayed nor interact with when they are not added to a layout, so a user interface contains at least one layout.
Service is running in the background, and users want the application to keep running all the time when playing music, and the foreground Service cannot be used at this time.
Frame rate is the frequency (rate) at which a bitmap image appears continuously on a display in frames, measured in hertz (Hz).
An engineer uses a simulator to debug a HarmonyOS application, which can support two types of HAP: signed and unsigned HAP (Harmomy0S Ability Package).
The lightweight preference database is a non-relational database, which mainly provides lightweight key-value operations and supports local applications to store a large amount of data. If a HarmonyOS developer uses a lightweight preference database to save data, the data will be stored in a local file and will not be loaded into memory.
HarmonyOS's Data Ability is used to provide an interface for operation data, but cannot provide file-related operations.
If a developer wants to develop a file background download function, there needs to be a Page Ability to provide UI pages, and a ServiceAbility to provide a background file download function. If you want to perform some operations in the Service Ability after connecting to the Service Ability in the Page Ability, you need to implement the onConnect() method in the Service Ability.
The application package names of the application projects created by JavaSaript and the applications compiled by the Java projects are HAR (HarmonyOS Ability Resources) and HAP (HarmonyOS Ability Package), respectively.
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.
The user application package of HarmonyOS may not contain a HAP package of the feature type.
In DevEco Studio, engineers can log in to the emulator after passing the real-name authentication of their HUAWEI ID.
In the HarmonyOS system architecture, the distributed data management module belongs to the framework layer.
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.
A developer calls the terminate method in JavaScript code, which causes the Page Ability to be destroyed.
A HarmonyOS application may not contain a hap package of the feature type.
HAR (HarmonyOS Ability Resources) is different from HAP (HarmonyOS Ability Package) in that HAR cannot be installed and run on devices independently, and can only be referenced as dependencies of application modules.
JavaScript FA (Feature Ability) lifecycle events are divided into application lifecycle and page lifecycle.
HarmonyOS application packages are released in the form of application packs, which are composed of one or more HAPs (HarmonyOS Ability Packages) and pack.info describing each HAP attribute.
In a HarmonyOS application, there must be one and only one HAP of the feature type.
When an engineer packages an application, DevEco Studio will package all the HAP (HarmonyOS Ability Package) modules in the project directory into the application, so if there are HAP modules in the project directory that do not need to be packaged into the application, the tool will automatically delete them and then compile and build the application.
On the basis of the supported input events, HarmonyOS's multi-dimensional input defines some input actions commonly used by users as a set of standardized events, maps the input events of different input devices to the standardized events, and can obtain a unified experience when using multiple input devices to operate different terminal devices or applications.
When a developer starts a music player on a remote device, he or she may not fill inthe Deviceld of the remote device.
The global search portal provided on HarmonyOS has a desktop drop-down search box or a negative screen search box.
In HarmonyOS, by default, the UI interface is displayed and updated in the main thread
When a developer uses the JS (JavaScript) UI framework to develop an application, if style =width:"10px is used in the component, the width of the component cannot be dynamically modified. If you use style="width:{{width}}" to set the width of a component, you can dynamically modify the width of the component in a JS file.
When a developer develops an application based on HarmonyOS, the data used by a developer can be decomposed into multiple objects. The developer needs to add, delete, modify, and check the teaching data, but does not want to write overly complex SQL statements. In this scenario, the developer can use an object-relational mapping database to process the data.
A developer uses the Wi-Fi "Don't TrustHot-spotConfiguration" feature provided by HarmonyOS to add a specifiedhot-spotto its application, making it prioritize lower than the saved hot-spot. In this case, the system will refuse to connect to thehot-spoteven if it is the most suitablehot-spotafter the system scan.
When using EventHandler to implement inter-thread communication, if EventRunner takes out the Runnable task, it will trigger the callback method of EventHandler and the processing method of EventHandler.
Intent is a carrier for transmitting information between objects.
A developer needs to read the resource files in the rawfile folder, and the following code can be used to read them successfully.
Image
image(Image)findComponentByld(ResourceTable.Id_cormponent_image);
Image.setPixelMap (ResourceTable.Media hawei);
If a developer wants to be able to get the return result when the user returns from the navigation target AbilitySlice, they should use presentForResult() to implement the navigation. When the user returns from the navigation target AbilitySlice, the system will call onResult() to receive and process the returned result.
When MainAbility and MainAbilitySlice are bound together, the lifecycles of the two are synchronized, including the callback method for transitioning between states.
A developer needs to make a list of the minimum necessary permissions for the application he develops. If the minimum necessary permissions list is output correctly, the lack of one of these permissions will cause the application-related services to be unable to implement or run normally.