Code example for FragmentTransaction

Methods: addToBackStackcommitreplace

0
     */ 
    public void onConfigureAccountSelected() { 
	Fragment f = AccountConfigureFragment.newInstance();
	FragmentTransaction transaction = fragmentMgr.beginTransaction();
 
	transaction.replace(android.R.id.content, f, "configureAccount");
	transaction.addToBackStack(null);
	transaction.commit();
    } 
 
    /** 
     * Main fragment of the wizard account activity. 
     */ 
    public static class MainFragment extends Fragment implements OnClickListener, RadioGroup.OnCheckedChangeListener {
	private RadioGroup mConfigureGroup;
	private Button mNextButton;
 
	private Account activity;
 
	/** 
Stop searching for code, let great code find you!  Add Codota to your java IDE