Code example for ListFragment

Methods: getActivity, onStop

0
		getListView().setOnItemClickListener(getOnItemClickListener());
	} 
 
	@Override 
	public void onStop() { 
		super.onStop(); 
		getActivity().unregisterReceiver(loadingDone);
	} 
 
	private void startManagingCursor(boolean managingCursor) {
		if (managingCursor) {
			getActivity().startManagingCursor(cursor);
		} 
	} 
 
	protected abstract boolean isActivityManagingCursor(); 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		return inflater.inflate(getListeLayout(), container, false);
	}