Code example for FragmentActivity

Methods: onStart

0
		FragmentManager manager = getSupportFragmentManager();
		if (manager.findFragmentById(R.id.frame) == null)
			manager.beginTransaction().add(R.id.frame, CommitteeListFragment.forLegislator(legislator)).commit();
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java