Code example for ListFragment

Methods: onDestroyView

0
		} 
	} 
	 
	@Override 
	public void onDestroyView() { 
		super.onDestroyView(); 
		mCursor.close();
	} 
	 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		 
		TextView 	tv 		= (TextView) v.findViewById(R.id.phone_number);
		String 		number 	= tv.getText().toString();
		String 		name	= mDisplayName.getText().toString();
		 
		mContactsListener.onContactNumberSelected(number, name);
	} 
		 
	class PhoneNumbersAdapter extends SimpleCursorAdapter {