Code example for ListFragment

Methods: getActivity, getFragmentManager

0
	//When an item on the list is clicked 
	@Override 
	public void onListItemClick(ListView lv, View v, int position, long id){
		if(!appointments.isEmpty()){
			selected = appointments.get(position);
			new ScheduleDialog(this, this.getActivity(), titleDialogDelete, messageDialog, datasource).show(getFragmentManager(), titleDialogDelete);
            loadAppointments(); 
		} 
	} 
 
 
}