Code example for ListFragment

Methods: getFragmentManager

0
	   } 
	    
	 
	   void showDialog(int position) {
		    DialogFragment newFragment = DoctorDialog.newInstance(doctors.get(position).getPhone());
		    newFragment.show(getFragmentManager(), "dialog");
		} 
	    
	   //On doctor click****************************************************************** 
		public void onDoctorClick(int position) {
			//TODO add parameters  
			IntentHelper.openNewActivity(DoctorDetailActivity.class, null, false); 
		} 
} 
 
/***********************************Task************************************/ 
class DoctorsTask extends AsyncTask <Void, Void, List<Doctor>> {
    @Override 
	protected List<Doctor> doInBackground(Void... urls) {
    	 
    	//TODO temporary