I\'m trying to use the ActionBarSherlock library to provide backwards compatible ActionBar support with tabs in my Android app, so I downloaded the latest build, built the d
You should add the Sherlock theme to your application
<application android:icon="@drawable/icon" android:label="@string/app_name"
android:debuggable="false" android:theme="@style/Theme.Sherlock">
Another reason you might get null from getSupportActionBar()
is trying to call it before setContentView(R.layout.main)
or in your example adding a fragment.
I refactored oncreate and mistakenly put getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
after super.onCreate(savedInstanceState);