nerdexam
Android

AND-401 · Question #22

Which of these Activity class methods must be overridden when creating a Menu that is displayed when the device's Menu button is pressed?

The correct answer is C. onCreateOptionsMenu. See the full explanation below for the reasoning.

Question

Which of these Activity class methods must be overridden when creating a Menu that is displayed when the device's Menu button is pressed?

Options

  • AonCreateContextMenu
  • BonMenuOpened
  • ConCreateOptionsMenu
  • DopenOptionsMenu

How the community answered

(40 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    80% (32)
  • D
    13% (5)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice