Code example for Menu

Methods: clear

0
        super.onStop(); 
    } 
 
    @Override 
    public boolean onPrepareOptionsMenu(Menu menu) {
        menu.clear();
        getSettings().addMenuItems(menu, true);
        return true; 
    } 
 
    @Override 
    public boolean onTouchEvent(MotionEvent event) {
        if (event.getAction() == MotionEvent.ACTION_DOWN) {
            // Cancel dialog on any touch down event which is not handled by the corpus grid 
            cancel();
            return true; 
        } 
        return false; 
    } 
 
    @Override