What two methods you have to override when implementing Android context menus?
What two methods you have to override when implementing Android context menus?
To implement Android context menus, you need to override two methods: onCreateContextMenu and onContextItemSelected. The onCreateContextMenu method is used to construct the context menu when it is requested, allowing you to define what items will appear in the menu. The onContextItemSelected method is used to specify the actions that should occur when an item in the context menu is selected by the user.
B. onCreateContextMenu, onContextItemSelected