If a developer wants to use the video playback function of HarmonyOS, which of the following subsystems will he use?
A developer is developing an online education application, and there are multiple choice questions and multiple choice questions in the studentAnswer:interface, which of the following components is suitable for displaying multiple choice questions?
When designing an application, the program needs to include the global configuration information of the application and the configuration information of the HarmonyOS Ability Package (HAP). In which file can the developer configure this information?
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?
A developer needs to cancel a task, but part of the code segment he wrote was deleted by mistake. The remaining codes are as follows, with the missing codes indicated by the dash:
TaskDispatcher dispatcher =
getUlTaskDispatcher();
Revocable revocable =
________________________(new Runnable(){
@Overide Public void run(){
HiLog.info(L . ABEL_ _LOG,"delay dispatch");
}
},10);
Boolean revoked = revocable.revoke();
HiL og.info(L _ABEL_ LOG),"%{public}b" ,revoked);
Which of the following might be missing pieces in the above code?
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?
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?
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 using EventHandler to implement inter-thread communication, if the callback method of EventHandler and the processing method of EventHandler are used.
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 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.
An application can have one or two HAP (HarmonyOS Abi1itPackage) packages of entry type in the same device type.
In HarmonyOS, by default, the UI interface is displayed and updated in the main thread
Although a Page can contain multiple AbilitySlices, when a Page enters the foreground, the interface displays only one Abilitylice by default.
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.