Android: Getsupportactionbar() Always Returns Null in Actionbarsherlock Library

Android: getSupportActionBar() always returns null in ActionBarSherlock library

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">

GetSupportActionBar return null

I havent played around with SherlockListActivity too much...but here's a shot in the dark....try moving

   getSupportActionBar().setDisplayHomeAsUpEnabled(true);

into your onStart method override instead of the onCreate



Related Topics



Leave a reply



Submit