ExamGecko
Question list
Search
Search

Related questions











Question 372 - H14-231_V1.0 discussion

Report
Export

In the HarmonyOS distributed application scenario of multi-device collaboration, device A is often required to start and stop the service of device B, for example, start and stop the music playback of device B on device A. In the process of starting and stopping a Service, the following statement is correct

A.
The onStart() method will only be called back once by the system during the lifetime of the Service
Answers
A.
The onStart() method will only be called back once by the system during the lifetime of the Service
B.
Every time you start the Service method, onCommand() will be called back by the system
Answers
B.
Every time you start the Service method, onCommand() will be called back by the system
C.
can call the method terminateAbility() or stopAbility() to stop the Service
Answers
C.
can call the method terminateAbility() or stopAbility() to stop the Service
D.
Service---Once it is running, it can be easily stopped or destroyed by the system
Answers
D.
Service---Once it is running, it can be easily stopped or destroyed by the system
Suggested answer: A, B, C
asked 18/09/2024
femke vroome
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first