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)- A3% (1)
- B5% (2)
- C80% (32)
- D13% (5)
Community Discussion
No community discussion yet for this question.