Code example for FragmentManager

Methods: getBackStackEntryCount

0
		} else { 
			// check if we are at the second level (speaker list, event list...) 
			// we are at the second level if the next click on the back button send the user to the 
			// mainFragment 
			FragmentManager fm = mainActivity.getFragmentManager();
			if (fm.getBackStackEntryCount() == 1) {
				// 
				setSecondFragmentVisible(false); 
 
			} 
		} 
	} 
 
	/******************************************************************************************/ 
	/** Getter/Setter **************************************************************************/ 
	/******************************************************************************************/ 
	/** 
	 * @param mainActivity 
	 *            the mainActivity to set 
	 */ 
	public final void setMainActivity(Activity mainActivity) {