Code example for ListFragment

Methods: getActivity, getParentFragment, onDetach

0
		mActivityFirstCreated = true;
	} 
 
	@Override 
	public void onDetach() { 
		super.onDetach(); 
		final Activity activity = getActivity();
		if (activity instanceof SupportFragmentCallback) {
			((SupportFragmentCallback) activity).onDetachFragment(this);
		} 
		final Fragment fragment = getParentFragment();
		if (fragment instanceof SupportFragmentCallback) {
			((SupportFragmentCallback) fragment).onDetachFragment(this);
		} 
	} 
 
	public void onPostStart() { 
	} 
 
	@Override 
	public void onScroll(final AbsListView view, final int firstVisibleItem, final int visibleItemCount,