If you want one ActionBar to use inheritance for all your actions. Create an action that simply handles the ActionBar as you want, and make it a superclass like this.
public class ActionBarActivity extends Activity{ public void onCreate(... ) { ActionBar actionBar = getActionBar();
Now you can use this action for all your inheritance actions:
public class MyActivity extends ActionBarActivity{ ... }
With this setting, you can use fragments of your choice.
Keep in mind that every time you invoke a new action, superclass callbacks are called.
source share