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

Which of the following Activity methods is invoked when the user clicks on an options menu item?
A . onItemClicked
B . onItemSelected
C . onOptionsItemClicked
D . onOptionsItemSelected

Answer: D

Explanation:

When the user selects an item from the options menu (including action items in the app bar), the system calls your activity’s onOptionsItemSelected() method.

References: http://developer.android.com/guide/topics/ui/menus.html

Latest AND-401 Dumps Valid Version with 228 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments