@Override
    public boolean onCreateOptionsMenu(Menu menu) {
        super.onCreateOptionsMenu(menu);
        displayItems = menu.add(0, 1234, 0, "Display GeoItems");
        displayMoreItems = menu.add(0, 5678, 0, "Add more GeoItems");
        displayMoreItems.setEnabled(false);
        hideItems = menu.add(0, 9012, 0, "Remove GeoItems");
        hideItems.setEnabled(false);

        displayItems.setEnabled(false);
        displayMoreItems.setEnabled(true);
        hideItems.setEnabled(true);

        return true;
    }
@ Override public boolean onCreateOptionsMenu ( Menu menu ) { super . onCreateOptionsMenu ( menu ) ; displayItems = menu . add ( 0 , 1234 , 0 , "Display GeoItems" ) ; displayMoreItems = menu . add ( 0 , 5678 , 0 , "Add more GeoItems" ) ; displayMoreItems . setEnabled ( false ) ; hideItems = menu . add ( 0 , 9012 , 0 , "Remove GeoItems" ) ; hideItems . setEnabled ( false ) ; displayItems . setEnabled ( false ) ; displayMoreItems . setEnabled ( true ) ; hideItems . setEnabled ( true ) ; return true ; }
onCreateOptionsMenu handler