Code example for MenuItem

Methods: getTitle

0
    @Override 
    public boolean onOptionsItemSelected(MenuItem item) {
        LinkedList<PoolCallback> defaultcallbackstack = new LinkedList<PoolCallback>();
        defaultcallbackstack.addFirst(glview.getDrawCallback());
 
        if (item.getTitle().equals(MENU_STRING)) {
            defaultcallbackstack.addFirst(new SURFProcessor());
            toasts(DIALOG_TUTORIAL_SURF);
        } 
 
        mPreview.addCallbackStack(defaultcallbackstack);
 
        return true; 
    } 
 
    @Override 
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setVolumeControlStream(AudioManager.STREAM_MUSIC);
 
        try {