I am new to android development.
I created class and extend that class from FragmentActivity
.
When I use this function getFragmentManager()
it does not allow me to do it
I am also unable to use getSupportFragmentManager
because its also giving me error that can not convert from support api to android.app
But then I used TargetApi(11) attribute on my abstract class that I extend from FragmentActivity
class.
Now the error is gone.
But I like to know, does targetApi(11) limits my app from running my app on adroid devices below api 11?
Or below api 11 does not allow fragmment or hence does not support FragmentActivity class ?
If last thing that i mention is true, should I instead of fragment should I use new activities?