Menus are a common feature in many graphical user interface (GUI) systems. Their primary role is to provide shortcuts to certain actions.
This chapter looks at Android menus closely and provides three sample applications.
Pre-3.0 Android devices shipped with a (hardware) button for showing menus in the active application. Starting from Android 3.0, the action bar is the recommended way of achieving the same thing, in effect making a hardware Menu button redundant. With the hardware menu button gone, “soft” menus have become even more important than ever.
There are three types of menus in Android:
The options menu is the type of menu you normally incorporate in the action bar, as ...