Multiple choice

The onCreateOptionsMenu callback is called when the user ____________________.

  1. Click the screen

  2. Touch the menu

  3. Swap the screen

  4. Presses the menu button

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The onCreateOptionsMenu callback is called when the user presses the menu button; this is where we create the menu by using the layout resource file.