Code example for ListFragment

Methods: onContextItemSelected

0
            AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
            mDbHelper.deleteTask(info.id);
            setListAdapter(fillData());
            return true; 
		} 
		return super.onContextItemSelected(item);
	} 
	 
	@Override 
	public void onActivityResult(int requestCode, int resultCode, Intent data) {
		// TODO Auto-generated method stub 
		super.onActivityResult(requestCode, resultCode, data);
		setListAdapter(fillData());
	} 
	 
}