Code example for ListFragment

Methods: getActivity

0
			switchFragment(newContent);
	} 
 
	// the meat of switching the above fragment 
	private void switchFragment(Fragment fragment) {
		if (getActivity() == null)
			return; 
		 
		if (getActivity() instanceof FragmentChangeActivity) {
			FragmentChangeActivity fca = (FragmentChangeActivity) getActivity();
			fca.switchContent(fragment);
		} else if (getActivity() instanceof ResponsiveUIActivity) {
			ResponsiveUIActivity ra = (ResponsiveUIActivity) getActivity();
			ra.switchContent(fragment);
		} 
	} 
 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE