Provisioning for System Menus

Most Windows applications come with menus such as File, Edit, View, Open, Close, and Exit. These menus are called system menus. The Android SDK suggests that the system could insert a similar set of menus when an options menu is created. However, releases 1.0, 1.1, and 1.5 of the Android SDK do not populate any of these menus as part of the menu-creation process. It is conceivable that these system menus might be implemented in a subsequent release. The documentation suggests that programmers make provisions in their code so that they can accommodate these system menus when they become available. You do this by calling the onCreateOptionsMenu method of the parent, which allows the system to add system menus to a group identified by the constant CATEGORY_SYSTEM.

0 0

Post a comment