Which method inflates the options menu?

  1. onPrepareMenu()
  2. onCreateOptionsMenu()
  3. onCreateContextMenu()
  4. onOptionsItemSelected()
Answer

B) onCreateOptionsMenu()

onCreateOptionsMenu inflates the menu XML.

Computer Science MCQ · More Action Bar and User Interface Design MCQs · Practise