In Activity class, there is method called registerForContextMenu(View view).
The android document explains that this method is used to registers a context menu to be shown for the given view (multiple views can show the context menu).
- What does “context menu” mean? Does it mean the physical menu button or what?
- I also need some explanation about the method
registerForContextMenu(View view), it is not clear to me to just read the document online.
It’s basically a pop-up menu that is displayed when you long-click certain UI elements (usually an item in a ListView).
You should take a look at the Menus section of the Developer Guide.