It depends on whether you are using Support Library.
If you are using fragments below api level 11 then use android.support.v4.app
. In this case you will extend FragmentActivity
which is the base class of support based fragments.
If you are using fragments in api level 11 and above use android.app
. In this case you will extend standard Activity
.
Take a look at the below link and decide on what versions your app should run. Depending on that decide whether you need support library or not.
https://developer.android.com/about/dashboards/index.html
I only plan on supporting API level 14 and higher...
Then there is no need to use support library. Use
import android.app.Fragment
and extend standard Activity
.