public
void
switchFragment(
int
id, Fragment fragment)
{
try
{
FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.replace(id, fragment);
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
ft.commit();
}
catch
(Exception e)
{
}
}