nerdexam
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)
  • A
    4% (2)
  • B
    6% (3)
  • C
    77% (36)
  • D
    13% (6)

Community Discussion

No community discussion yet for this question.

Full OA0-002 Practice