What two methods you have to override when implementing Android option menus?
What two methods you have to override when implementing Android option menus?
To specify the options menu for an activity, you override onCreateOptionsMenu(). This method is where you inflate your menu resource into the Menu provided in the callback. When the user selects an item from the options menu, the system calls your activity's onOptionsItemSelected() method. This method handles the menu item clicks. Therefore, the two methods you have to override when implementing Android option menus are onCreateOptionsMenu and onOptionsItemSelected.
C. onCreateOptionsMenu, onOptionsItemSelected
A. onCreateOptionsMenu, onCreateContextMenu