API 10: Android 2.3.3 (Gingerbread) - ActionBarActivity vs FragmentActivity -
as long 1 wants support api 10: android 2.3.3 (gingerbread), why or when want use fragmentactivity instead of actionbaractivity? there reason doing so? because actionbaractivity extends fragmentactivity , offers features of fragmentactivity out of box. have seen sample codes on internet use fragmentactivity instead of actionbaractivity , hence confused.
why or when want use fragmentactivity instead of actionbaractivity? since fragment introduce since api 11/honeycomb can not use api 10 fragmentactivity made backport fragment lower level api.
for actionbaractivity if want use actionbar within application need use this, because the action bar has been introduced in android 3.0. same fragment.
therefore if want fragment no actionbar in application ranging gingerbread , below fragmentactivity way go hence if want support actionbar fragments capabilities in application devices gingerbread , below api actionbaractivity must used.
Comments
Post a Comment