Code example for ListFragment

Methods: getListView, onCreateContextMenu

0
	 
	// Creates the context menu 
	@Override 
	public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
	 
		super.onCreateContextMenu(menu, v, menuInfo);
		 
		if (v.getId() == this.getListView().getId()) { 
			  			   			   
			menu.setHeaderTitle("Select action"); 
			menu.add(0, 0, 0, "More info");
			menu.add(0, 0, 0, "Remove");
			  		   
		} 
		  
	} 
	 
	// Handles the context menu item selection events 
	public boolean onContextItemSelected(MenuItem item) {
		 
		SubscriptionData subData;