يمكنك الرجوع إلى دليل Android Designer لمعاملات الشظية:http://developer.android.com/guide/components/fragments.html
وخاصة المقتطف أدناه:
// Create new fragment and transaction
Fragment newFragment = new ExampleFragment();
FragmentTransaction transaction = getFragmentManager().beginTransaction();
// Replace whatever is in the fragment_container view with this fragment,
// and add the transaction to the back stack
transaction.replace(R.id.fragment_container, newFragment);
transaction.addToBackStack(null);
// Commit the transaction
transaction.commit();
لذا نعم ، ما تفعله هو النهج الصحيح في استبدال الشظايا.