Exam AND-401 All QuestionsBrowse all questions from this exam
Question 30

What two methods you have to override when implementing Android context menus?

    Correct Answer: B

    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.

Discussion
MmadiOption: B

B. onCreateContextMenu, onContextItemSelected