Huawei Related Exams
H14-231_V1.0 Exam
WhenthePage of Harmony OS executes the onForeground() callback, which of the following states will the Page return to first?
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?
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