Parameters in the Menu.add method:
1.the group ID parameter of type int, which represents the concept of groups, allows you to group several menu items into groups to better manage your menu buttons as a group. The available methods are:
Removegroup (ID)
Setgroupcheckable (ID, checkable, exclusive)
Setgroupenabled (Id,boolean enabled)
Setgroupvisible (id,visible)
2.the item ID parameter of type int, which represents the project number. This parameter is important, and an item ID corresponds to an option in the menu. In the later use of the menu, it is to rely on the item ID to determine which option you selected.
3.an Order ID parameter of type int, which represents the order in which the menu items are displayed. The default is 0, which means that the order in which the menus are displayed is displayed in the order of Add.
4.The title parameter of type String, which represents the text displayed in the option.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The meaning of the parameters in the Add method in the menu of the Android system!!!