The description of the ForEach(arr,itemGenerator,index) component is correct
HarmonyOS adopts a multi-core design, which supports the selection of appropriate OS kernels for different resource-constrained devices, and which of the following capabilities does the kernel provide for the operating system?
A developer uses the JavaScript UI framework's swiper sliding container to develop a banner scrolling effect, which are the correct items in the following description of the swiper code?
indicator="true"autoplay="true"interval="2000" loop="true"digital="false">
When an intent is used to initiate a request, a developer designs to open a link through a browser, but does not care which browser application the user ultimately chooses.
Which of the following properties of state decorator decorating must be initialized locally?
JavaScriptUl does not support async and await syntax.
If a developer uses the startAbility() method provided in Ability to start a Service, what are the correct descriptions of starting the Service?
Which of the following are the lifecycle callback functions of Ability?
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.
Which of the following information is included in the module.json5 configuration file?
Which of the following properties or events does the web component support?
What is the correct position setting for the Tabs tab described below?
HarmonyOS Distributed File Service can automatically share files under different accounts.
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?
Which of the following methods can remove a notification?
When a developer uses HarmoyOS system security, which of the following functions makes the device have the ability to prove its security to other virtual devices?
A developer has multiple versions of the object-relational mapping database, and the developer calls the BOOKstoreUpgrade class to upgrade the database version, and the version number of the BOOKstoreUpgrade class is configured as "3", and the actual version number of the current BOOKstore.db is "1", in this case, TestormMigration12, TestormMigration23 The onMigration method is automatically called to complete the database upgrade.
Which of the following descriptions of traditional Bluetooth operation is correct for HarmonyOS devices?
HarmonyOS provides developers with a HiLog logging system, which of the following log levels are defined in HiLog?
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?
How do I create a new project in DevEco Studio?
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?
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.
Which of the following processes does the HarmonyOS data lifecycle consist of?
Which of the following statements is correct?
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 log content filtered by a developer through relevant information is:
01-2016:08:36.908
23597/com.example.myapplication W
00201/MY TAG:Failed to visit,reason:503.
Which of the following cannot be obtained by analyzing the log?
Which of the following information is contained in moduleJSON5 under entry?
Regarding the Tabs component and the TabContent component, the following description is correct
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.
If a developer needs to use the JavaScript UI framework to display the bar chart of the month's product sales, he can use the chart component to implement this function.
What are the data management methods provided by HarmonyOS?
To publish sticky public events in armonyOS, the publisher must first apply for the permissions required to publish sticky public events in config.json.
What are the following scenarios that belong to the public events of the system?
When a developer is developing a smart home application, the Switch component will be used to represent the switch of some devices, and ON should be displayed on the ON status component, and 0FF should be displayed on the closed state component. You can use the following code to meet your needs:
Switch btnSwitch=
(Switch)findComponentByld(ResourceTable.
ld_btn_switch);
btnSwitch.setStateOffText("ON");
btnSwitch.setStateOnText("OFF");
If a reading app uses the language recognition capability provided by HarmonyOS, the app can automatically read a novel.
If a developer wants to implement the page swiping function in an application, which of the following components can be used to implement the function?
If a developer uses the DevEco Studio tool for application development, which of the following commissioning methods does the tool support?
Which of the following descriptions of traditional Bluetooth operation is correct for HarmonyOS devices?
What are the types of background agent reminder services?
On the basis of the supported input events, the multi-mode input defines some input actions commonly used by users as a set of standardized events, and maps the input events of different input devices to the standardized events.
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.
HarmonyOS maintains a stack of AbilitySlice instances for each Page, and each AbilitySlice instance that enters the foreground will be added to the stack.
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 services will be automatically activated after a HarmonyOS Cloud development project is created?
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?
A developer wants to use the list component of the JavaScript UI framework to display a table.
scrollpage="true" scrollbar="on" shapemode="round" scrolleffect="no">
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.
What is correct about Web Component Description A?
HarmonyOS supports on-demand elastic deployment of a variety of terminal devices.
When using DevEco Studio for debugging, you need to check the properties in configjson regardless of whether you use a real machine or an emulator.
What are the componentization characteristics of custom components?
An engineer uses the WLAN P2P function, and the engineer can establish a P2P group.
The distributed data management of HarmoryoS is based on the distributed soft bus to realize the distributed management of application data and user data.
JavaScript FA (Feature Ability) lifecycle events are divided into application lifecycle and page lifecycle.
The object relational mapping database mainly provides light-grade Key-Value exploration, which supports local applications to store less data, and the data is stored in local files and also loaded in memory, so the access speed is faster and more efficient.
The MainAbility of a HarmonyOS application has multiple AbilitySlices, and when the AbilitySlice health state is switched, the MainAbility state is INACTIVE.
The input division method of HarmonyOS is different from that of traditional operating systems, and multi-dimensional inputs will be integrated, so that developers can use application frameworks, UI components or interfaces that come with the system to implement applications with multi-dimensional and natural interaction characteristics.
A home appliance manufacturer used HarmonyOS to produce a high-end refrigerator with a display (256MB of memory), which is not part of HarmonyOS's standard system device.
A developer needs to use the JavaScript UI framework to display the bar chart of the current month's product sales, and can use the chart component to achieve this function.
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.
When using EventHandler to implement inter-thread communication, if the callback method of EventHandler and the processing method of EventHandler are used.
When a developer starts a music player on a remote device, he or she may not fill inthe Deviceld of the remote device.
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.
In HarmonyOS, by default, the UI interface is displayed and updated in the main thread
A manufacturer used HarmonyoS to produce a dash cam (memory is 64MB), which is small in size and light in weight, and is a lightweight system device.
Developers can create user interfaces directly on AbilitySlice or on Ability.
If the third-party library used by the developer involves permission management, the permission needs to be declared one by one in the config.json file of the application.
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.
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.
HarmonyOS's relational database and object relational mapping database are both based on SQLite.
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.
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.
A HarmonyOS application may not contain a hap package of the feature type.
The ListContainer grid layout can be realized through the setLayoutManager() method
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.
In multiple distributed devices with the same HarmonyOS account, after logging in to an app, the app can synchronize the app account authentication information (account name, token or other) to other devices as needed.
When the user is driving a car, he cannot use the mobile phone with his hands free, but he can control the mobile phone through voice assistant interaction. The abovescenarios belong to a typical class of applications of entity recognition.
In a HarmonyOS application, there must be one and only one HAP of the feature type.
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.
HarmonyOS maintains a stack of AbilitySlice instances for each Page, and each AbilityS1ice instance that enters the foreground will be added to the stack.
An engineer uses a simulator to debug a HarmonyOS application, which can support two types of HAP: signed and unsigned HAP (Harmomy0S Ability Package).
In the process of developing an application based on HarmonyOS, in order to avoid applying for permissions that are unrelated to the user's required functions, a developer uses the UUID generated by the application instead of the device ID to reduce the permission application. The developer's actions exemplify the principle of applying for permissions in the vicinity.
When a developer navigates within the same page, the AbilitySlice is new, even if present(newTargetSlice(), new Intent()) is repeatedly called, it will not cause any AbilitySlice to be out of the stack.
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
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.
Frame rate is the frequency (rate) at which a bitmap image appears continuously on a display in frames, measured in hertz (Hz).
A developer wants to use macOS for HarmonyOS application development, but the development tool DevEco Studio does not support macOS installation.
Lightweight data storage is suitable for data storage involving a large number of data relationships and business relationships, and has better read and write performance than relational databases and object-relational mapping databases.
HarmonyOS provides the Al capability of Instant Messaging (IM) intent, which can convert speech signals into text or commands, and identify the user's intent represented by the message content.
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.
The global search portal provided on HarmonyOS has a desktop drop-down search box or a negative screen search box.
An application can have one or two HAP (HarmonyOS Abi1itPackage) packages of entry type in the same device type.
Distributed data services can isolate data belonging to different applications to ensure that data between different applications cannot be accessed to each other through distributed data services.
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.
A developer calls the terminate method in JavaScript code, which causes the Page Ability to be destroyed.
There is a button on the main interface of a HarmonyOS application, and the display text on the button is "Start Download", after clicking this button, a sub-thread is created to perform time-consuming download operations. After the download is over, you can change the button in the subthread to "Download End".
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 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 manufacturer uses the HarmonyOS system to produce a smart oven, which is a lightweight system device in HarmonyOS.
When a developer starts a music player on a remote device, he or she may not fill in the Deviceld of the remote device.
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.
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.
There is a configljson configuration file in the root directory of each HAP (HarmonyOS Ability Package) of a HarmonyOS application.
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 combinations cannot realize two-way data synchronization between child components and parent and child components?
With regard to Web components, the following is incorrect
The software engineer will encode the data, which can take two coding methods: ordinary and pipeline, which of the following are the differences between these two coding methods?
A HarmonyOSengineer needs to apply for a digital certificate to complete the release of the application, which of the following descriptions of digital certificates is wrong?
A user migrates video playback from his mobile phone to a smart screen and uses the distributed task scheduling capability of HarmonyOS. Which of the following is the process of connecting the video to the smart screen playback in this scenario?
When designing the application, the developer added a Text component and a Button component, and the development sample is shown below. What layout does the developer not have to choose to place the components?
If a developer needs to use the JavaScript UI framework to develop an application, which of the following components can the developer choose?
HarmonyOS Capabilities are divided into two types: Feature Ability and Particle Ability.
What are the following task distribution methods for developers?
In HramonyOS, which of the following can developers use the static animation feature to achieve?
If the user migrates the video on the machine to the smart screen for playback, which of the following callback methods can save the video playback data on the mobile phone?
Which of the following permissions is required when using the Video component to play network videos?
The JS UI framework of HarmonyOSis a cross-device high-performance UI development framework that supports declarative programming and cross-device polymorphic UI. Which layer of the JS UI framework mainly completes front-end page parsing, and provides capabilities such as MVVM (Model-View-ViewModel) development mode, page routing mechanism, and custom components.
A developer has developed a HarmonyOS application that remotely launches a Page on phone B, and which of the following permissions does not need to request the user to grant permission by sending a pop-up window at runtime?
The log content is "01-20 16:08:36.90823597-23597/com.example. myapplicition w00201/MY_TAG: Failed to visit . reason: 503." By analyzing the log, you can't get the following items?
In a live broadcast scenario, where the anchor uses an action camera as the live broadcast camera, what are the distributed capabilities of HarmonyOS used in this scenario?
When using the capabilities or data of the corresponding service, you need to apply for the corresponding permissions, and the non-sensitive permissions need to be declared in which field of config.json?
Which of the following permissions is required to load network images with the Image component?
When developing a HarmonyOS application, a developer receives the following product request: If a user logs in to the same HarmonyOS account on device A and device B, the user can log in to the app on device A and synchronize the application account authentication information to account B as needed. After the account authentication information is synchronized, the user can open the application on device B and log in directly without entering the application account authentication information again.
Which of the following descriptions of this scene 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?
If a developer wants to use the device virtualization feature of HarmonyOS, which subsystem will he use?
In what ways can developers use device-cloud integration in DevEco Studio?
A developer calls the getDefauitHOST(Context context) interface of Bluetooth HOST to obtain a Bluetooth HOST instance for managing local Bluetooth operations. This developer experiments with the following development steps to implement Bluetooth pairing. 1Turn on Bluetooth, 2Scan Bluetooth3 Initiate pairingWhich of the following statements about steps 1, 2, and 3 are correct?
When is the aboutToAppear() of the custom component executed?
API9 and above, router.pushUrl() method, what is the default mode used by the jump page?
After the open beta version is released, how can I add additional test users?
When creating an application, which field in the app.json5 or config.json file must be the same as the application package name?
Which of the following options belong to the kernel layer in the HarmonyOS system architecture?
A HarmamyOS developer created three task distributors, serialtask dispatcher_aand dispatcher_b, and a proprietary task dispatcher dispatcher_s. The developer is experiencing a deadlock while using syncDispatch, which of the following causes could cause this phenomenon?
With regard to the characteristics of @State state data, the following description is incorrect
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 component hierarchies is wrong?
Which of the following descriptions is wrong when it comes to the simultaneous development of JS (JavaScript) and Java languages in HarmonyOS application development?
When a HarmonyOS developer makes an FA call to PA, the callAbility interface returns the error "Internal ability not register.", which of the following points needs to be checked correctly?
There is a config.json configuration file in the root directory of each HAP (HarmonyOS Ability Package) of an application.
If a developer wants to use the clipboard service of HarmonyOS to implement simple data transfer between applications, which of the following statements is correct?
Which of the following belong to the lifecycle callback method of Page Ability?
When a developer is developing an online education application, in order to improve the user experience, if the userAnswer:s the question correctly, a dialog box of "Congratulations on the correctAnswer:" will pop up at the top of the window.
Where is the data of the preference placed after persistence?
Which of the following items is correct about the objects of HarmonyOS permission protection?
Which modules in the following figure can be installed and operated independently?
Use Textlnput to complete a password input box, which of the following values is recommended to set the type attribute?
When publishing an application, I need to create a certificate, and what type of certificate type should I choose?
If a developer wants to set up a dial pad, he will use round buttons and capsule buttons, what are the shape types that will be used in the background layer?
If a developer develops a HarmonyOS application and remotely launches a Page on phone B, which of the following permissions does not require the user to request authorization by sending a pop-up window at runtime?
Whichof the following subsystems in Harmony OS can achieve data isolation between applications?
When using HarmonyOS distributed terminals, which of the following items can ensure that the system is safe and reliable?
A developer called the getDefaultHost(Context context) interface of BluetoothHost to obtain a Bl1uetoothHost instance for managing local Bluetooth operations. The developer uses the following development steps to implement Bluetooth pairing:
1Turn on Bluetooth.
2Scan Bluetooth.
3. Initiate pairing.
Which of the following statements about steps 1, 2, and 3 is true?
There is a configuration file named "config.json" in the root directory of each HAP package of the HarmonyOS application, which mainly covers the following three aspects:
When a developer is developing a smart home application, the Switch component will be used to represent the switch of some devices, and ON should be displayed on the ON status component and OFF should be displayed on the closed state component, what are the following options that can meet the requirements?
If a developer wants to use the video playback function of HarmonyOS, which of the following subsystems will he use?
Which of the following descriptions of the HarmonyOSclipboard function is correct?
In the HarmonyOSsystem architecture, which of the following provides unified peripheral access capabilities and driver development management framework?
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?
A developer uses HarmonyOS to write half of an email on his mobile phone and click the transfer button to the tablet to continue editing the email.
A developer needs to use the current scattered data network for socket data transmission, in this scenario, the development process involves the following steps: 1. Use socket to send data.2. Call NetHandle.bindSocket() to bind the network.3. Call NetManager.getDefaultNet() to get the default data network.4. Call NetManager.getInstance(ContextWhen the developer sorts out the development steps, the above steps are sorted according to the order in which the functions are completed in the code. Which of the following is the correct order?
Now a Text component is used as the title of a page, and Text needs to be set to be invisible, but it still occupies the current layout space, which of the following is correct?
If a developer wants to develop a Data Ability for the storage and management of application data, which of the following can help the developer realize the function of inserting multiple pieces of data into the database at one time?
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?
If an engineer is about to debug a Harmony OS application on an emulator device, which of the following correct debugging processes is the following?
Which of the following products belongs to the security products in the smart homeecology?
In HarmonyOS, which of the following scenarios is the application responsible for instantiation?
Thedefault size of shared memory in Harmony OS is ?
A developer has developed an Image component and written the following code, which of the following descriptions of the component is correct?
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?
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).
When a developer needs to specify the exact coordinates of the x-axis and y-axis of a sub-component when laying out a component, which layout can be used to achieve this function?
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.
When a developer was developing a ticket booking application, he used the sliding selector TimPicker in the time selection of air tickets, according to the requirements of the airline, the time does not need to display the second information, which of the following can meet the needs?
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?
A developer designs a game application with MainAbility on the home page, click the game icon on the desktop, and then press the Home button to hide the game in the background, how does the life cycle of MainAbility change?
Which of the following is NOT acomponent of the Harmony OS object-relational mapping database?
When a developer installs HAP (HarmonyOSAbility Package), what is the reason for the "STRING LENGTH ERROR" message?
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?
If a developer wants to develop an application on a smart screen, which of the following subsystems will he use?
A HarmonyOSuser downloads and installs a new application, which has declared some non-sensitive permissions in the config.json file, and the application may involve some sensitive permissions during running. Which of the following is correct in this scenario?
If a developer wants to develop a page with a tab function, the developer can use the TabList component provided by HarmonyOS. If you want to set the selected tab to be marked by underlining at the bottom, which of the following codes is correct?
In the JS (JavaScript) UI framework, which layer is used to complete the front-end page parsing?
A developer defines an entity class Student.java and uses the following code to construct a teaching table:
Entity(tableName="student",ignoredColums =["ignoredColumn1"," ignoredColumn2", indices =(@Index(value =("firstName." ,"lastName",name="name_index", unique = true)))
Public class User extends OrmObject{
@PrimaryKey(autoGenerate= true)
Private Integer userld;
Private String firstName;
Private String lastName;
Private int age;
Private double balance;
Private int ignoredColumnl;
Private int ignoredColumn2;
}
Which of the following descriptions of this code is wrong?
If a HarmonyOS developerhas developed multiple applications and ensured that the data between different applications cannot be accessed through the triplet of account, application, and database, which of the following services can the developer use to achieve this function?
When a developer adds a Harmony OS app on the AppGallery web page, which platform does the developer need to choose to add the app?
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?
When a HarmonyOS app developer uses the form container, which of the following elements can be submitted and reset?
Which of the following is the callback behavior of the Page Ability lifecycle that can destroy the page?
Which description of the HarmonyOS clipboard can be correctly interpreted in the following scenarios?
If a developer wants to develop a page with a tab function, the developer can use the TabList component provided by HarmonyOS. If you want to set the color of unchecked text to black. Which of the following codes is correct?
A developer found that the app could not usethe network management function of Harmony OS without requesting permissions. In order to use the network management feature, the developer requested the following permissions for their app, which of them is not required for the network management feature?
Which of the following atomic layout capabilities does not belong to the position of the control element?
If a HarmonyOS engineer is about to debug a HarmonyOS application on an emulator device, which of the following debugging processes is correct?
Which of the following scenarios does not use encoding technology?
When the page loses focus, which of the following callback methods will be called bythe system to make it enter the INACTIVE state?
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 call Service Ability in Page Ability?
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??
The logs queried by a developer are as follows. HiLog.warn(LABEL, "Failed to visit %(private) s,reason:%(public}d.",url, exrno); What kind of level does the log belong to?
When the system creates a page instance for the first time, which method will be called?
When a developer subscribes to a public event, he processes the public event in the onReceiveEvent() callback function and writes the following code.
EventRunner runner = EventRunner.create();
MyEventHandler myHandler = new
MyEventHandler(rurner);
@Override
public void onReceiveEvent(CommonEventData
commonEventData){
final AsyncCommonEventResult
result=goAsyncCommonEvent Runnable task = new
Runnable(){
@override
pub1ic void run {
......
The action to be performed, defined by the developer
result.finishCommonEvent();
}
};
myHandler.postTask(task);
}
Which of the following is NOT a capability provided by Distributed Device Virtualization in HarmonyOS?
When a developer clicks the exit button of an application to release PageAbility resources, which callback method in the ability lifecycle of the Pag package will betriggered?
When the system destroys a page, which of the following callback methods will be triggered?
How do I define the permissionscorrectly when a developer needs to customize the permissions for the Harmony OS third-party application?
If an engineer needs to determine whether a device supports the corresponding decoder of the specified MIME (Multipurpose Internet Mail Extensions), which of the following interfaces should be selected?
If there are 3 Ability sharing a Service instance, how can I exit the Service instance?