Code example for FragmentTransaction

Methods: attach

0
ft.add(android.R.id.content, mFragment, mTag);
			} 
			else 
			{ 
				ft.attach(mFragment);
			} 
		} 
 
		@Override 
		public void onTabUnselected(Tab tab, FragmentTransaction ft)
		{ 
			if (mFragment != null)
			{ 
				ft.detach(mFragment);
			} 
		} 
 
		@Override 
		public void onTabReselected(Tab tab, FragmentTransaction ft)
		{