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 ResponsiveUIActivity) {
			ResponsiveUIActivity ra = (ResponsiveUIActivity) getActivity();
			ra.switchContent(fragment);
		} 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java