ianhanniballake is right. You can get all the functionality of an Activity from FragmentActivity . In fact, FragmentActivity has more functionality ).
Using FragmentActivity , you can easily create a tab and swap format. For each tab you can use different Fragment ( Fragments reuse). Therefore, for any FragmentActivity you can reuse the same Fragment .
However, you can use Activity for single pages, for example, enumerate something and edit the list item on the next page.
Also remember to use Activity if you are using android.app.Fragment ; use FragmentActivity if you use android.support.v4.app.Fragment . Never attach android.support.v4.app.Fragment to android.app.Activity , as this will throw an exception.
ray Mar 10 '13 at 3:36
source share