Free H14-231_V1.0 Exam Braindumps (page: 19)

Page 19 of 176

When a developer needs to create a Service Ability when developing a background service, which of the following processes is NOT the step to create the Ability?

  1. onStart
  2. onCommand
  3. onStop
  4. onActive

Answer(s): D



In HarmonyOS, which of the following scenarios is the application responsible for instantiation?

  1. Start an AbilitySlice by navigating
  2. reads a novel through a web page and accidentally clicks on an advertisement, which jumps directly to the app store to request the download of a certain game
  3. Jump to another page via a hyperlink
  4. An app page has messages, contacts, settings, etc., and switch between them

Answer(s): C



fter a developer sets :ohos:layout_alignment="horizontal_center" in the Text component, he writes:
text.setMarginRight (600) in the code, where is the Text displayed in the parent layout?

  1. is horizontally centered and shifted to the right by 600
  2. The parent layout moves 600 to the top left and right
  3. level is centered
  4. is horizontally centered and shifted 600 to the left

Answer(s): D



After the user migrates the navigation of the mobile phone to the smart watch, if the smart watch needs to obtain the data transmitted from the mobile phone, which of the following methods should it be obtained?

  1. onSaveData ()
  2. onStartContinuation ()
  3. onRestoreData (
  4. onCompleteContinuation ()

Answer(s): C






Post your Comments and Discuss Huawei H14-231_V1.0 exam with other Community members:

H14-231_V1.0 Exam Discussions & Posts