What method you should override to use Android menu system?

What method you should override to use Android menu system?
A . onCreateOptionsMenu()
B . onCreateMenu()
C . onMenuCreated()
D . onCreateContextMenu()

Answer: A

Explanation:

To specify the options menu for an activity, override onCreateOptionsMenu() (fragments provide their own onCreateOptionsMenu() callback).

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments