nerdexam
IBM

LOT-404 · Question #75

Dale wants to retrieve the language setting for an iOS device in an IBM Worklight application. Which approach to retrieving the language setting will also work for Android devices and thus improve…

The correct answer is B. Use the getDeviceLanguage method in the Worklight API. See the full explanation below for the reasoning.

Question

Dale wants to retrieve the language setting for an iOS device in an IBM Worklight application. Which approach to retrieving the language setting will also work for Android devices and thus improve the reusability of the application's code?

Options

  • AUse navigator.media.language from JavaScript.
  • BUse the getDeviceLanguage method in the Worklight API.
  • CUse the dojoConfig.device_language value from the provided Dojo Toolkit.
  • DCreate a native or hybrid application in Worklight Studio, and detect the language in a native class

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    78% (18)
  • C
    13% (3)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full LOT-404 Practice