Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?
Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?
The correct call-back method to inflate an options menu from a file like res/menu/menu.xml is onCreateOptionsMenu. This method is specifically designed to handle the creation and inflation of menu resources for an activity. It provides a Menu object where the menu items are added, typically using a MenuInflater class to inflate the XML resource into the Menu object.
D. onCreateOptionsMenu
B. onCreate