Android
OA0-002 · Question #6
The following code is a part of an Activity class to create a dialog. Which is the Activity class method used to display this dialog?
The correct answer is C. void show(). See the full explanation below for the reasoning.
Question
The following code is a part of an Activity class to create a dialog. Which is the Activity class method used to display this dialog?
Options
- Avoid createDialog();
- Bvoid createDialogfint id);
- Cvoid show();
- Dvoid showDialog(int id);
How the community answered
(47 responses)- A4% (2)
- B6% (3)
- C77% (36)
- D13% (6)
Community Discussion
No community discussion yet for this question.