getSupportActionBar using FragmentActivity

Christopher Francisco picture Christopher Francisco · Oct 1, 2013 · Viewed 23.4k times · Source

I'm using fragment activity on one project, but it seems v4 support FragmentActivity doesn't has getSupportActionBar() method, and I need to use the support one in order to use android.support.v7.app.ActionBar

Answer

Thijs Mergaert picture Thijs Mergaert · Oct 1, 2013

The ActionBarActivity does support the method you require, and is a subclass of FragmentActivity. See: http://developer.android.com/reference/android/support/v7/app/ActionBarActivity.html