android – Action Bar Fragment Activity-ThrowExceptions

Exception or error:

I’m triying to migrate my app from actionbarsherlock to Google’s actionbarcompat, but ActionBarFragmentActivity does not exist. Do I have to use ActionBarActivity or there is another way?

Thanks in advance,

How to solve:

Look here. This should help you out.

An Excerpt:

Extend Activity classes from ActionBarCompat:
ActionBarCompat contains one Activity class which all of your Activity classes should extend: ActionBarActivity.
This class itself extends from FragmentActivity so you can continue to use Fragments in your application. There is not a ActionBarCompat Fragment class that you need to extend, so you should continue using as the base class for your Fragments.

Leave a Reply

Your email address will not be published. Required fields are marked *