Free Huawei H14-231_V1.0 Exam Questions (page: 34)

A developer now needs to make a motion track recording application, which can report the user's location information in real time.
Which of the following is correct?

  1. Use RequestParam.SCENE_TRAJECTORY_TRACKING settings to locate the scene
  2. Apply for the ohos.permission.LOCATION permission only in config.json
  3. dynamically requests user authorization only in the code ohos.permission.LOCATION
  4. Use RequestParam.SCENE_NO_POWER settings to locate the scene

Answer(s): A



After a developer sets :ohos:layout_ alignment="horizontal _center" in the Text component, he writes: text.setTranslationX(600) in the code, where is the Text displayed in the parent layout?

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

Answer(s): B



When a user is traveling by car, a navigation route is planned on the mobile phone, and after getting into the car, the user migrates the mobile phone navigation to the large screen of the car machine. In this scenario, which interface is used to implement cross-device migration?

  1. IAbilityConnection
  2. IAbilityContinuation
  3. AbilityContinuation
  4. AbilityConnection

Answer(s): B



When a developer calls HarmonyOS Abi1ity Resources (HAR) in an application module, he or she needs to merge the config.json file of HAP and the config.json file of HAR into a single config.json file when compiling and building a HarmonyS Ability Package (HAP). During the merging process, under what circumstances will the values of tags conflict?

  1. HAP has no label value; The HAR has a tag value, and the value can be B
  2. HAP has a label value, and the value is A; HAR has no label value
  3. Neither HAP nor HAR had labeled values
  4. HAP has a label value, and the value is A. The HAR has a tag value, and the value can be B

Answer(s): D



Viewing page 34 of 176



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

H14-231_V1.0 Exam Discussions & Posts