Code example for ListFragment

Methods: onContextItemSelected

0
	    			return false; 
	    	} 
    	} 
    	else 
    	{ 
    		return super.onContextItemSelected(item);
    	} 
 
    	 
     }  
     
    /** execute the selected command */ 
    private final void executeCommand(final Command cmd)
    { 
        SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());
         
		if (!cmd.getCommandValues().equals(""))
		{ 
			// handle whatever values are defined for the command 
			// values can be either a list of "|" separated items to pick from 
			// or a sub-command to be executed first