Android Application Development (AND-401) — Question 33

Which of the following Activity methods is invoked when the user clicks on an options menu item?

Answer options

Correct answer: D

Explanation

The correct answer is D, onOptionsItemSelected, which is specifically designed to handle item selections from the options menu. The other options, such as onItemClicked and onItemSelected, are related to different types of user interactions and do not pertain to the options menu context.