IBM
C2180-279 · Question #101
As a part of the application design, the developer needs to handle the scenario where the user sends the application to the background and then opens it again. How should the developer do this?
The correct answer is A. Add an event listener to the foreground event and handle the return to the foreground. See the full explanation below for the reasoning.
Question
As a part of the application design, the developer needs to handle the scenario where the user sends the application to the background and then opens it again. How should the developer do this?
Options
- AAdd an event listener to the foreground event and handle the return to the foreground.
- BAdd an event listener to WL.Events.WORKLIGHT_IS_CONNECTED and handle the callback.
- CAdd an event listener to the background event and handle the return to the background, without
- DUse WL.Device.getNetworkInfo() to check if the application is in the foreground or background
How the community answered
(44 responses)- A73% (32)
- B5% (2)
- C7% (3)
- D16% (7)
Community Discussion
No community discussion yet for this question.