Exam Name: | HCIP-HarmonyOS Application Developer V1.0 | ||
Exam Code: | H14-231_V1.0 Dumps | ||
Vendor: | Huawei | Certification: | Huawei Certification |
Questions: | 695 Q&A's | Shared By: | zayyan |
If a developer uses the startAbility() method provided in Ability to start a Service, what are the correct descriptions of starting the Service?
AbilitySlice and Page have the same lifecycle state and callback method with the same name, and when the Lifecycle of the Page changes, the same lifecycle change will occur in AbilitySlice. Similarly, as the lifecycle of an AbilitySlice changes, the lifecycle state of a Page changes.
JavaScript FA (Feature Ability) lifecycle events are divided into application lifecycle and page lifecycle.
When a time-consuming operation needs to be performed in a HarmonyOS application, it is preferable to create subthreads in FA instead of creating subthreads in Service.