Hullo
Forgive me if I'm missing something, but I don't believe I've changed anything since testing out Beta 5, yet am getting this error.
My application's theme has a parent of Theme.Sherlock. It is defined in the manifest as so:
<application
android:icon="@drawable/main_icon"
android:label="@string/app_name"
android:name="com.myapp.MyApplication"
android:theme="@style/Theme.BCBase"
>
Then, my theme extends from Theme.Sherlock, in file values/theme.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources >
<style name="Theme.BCBase" parent="Theme.Sherlock">
<item name="android:windowNoTitle">true</item>
</style>
</resources>
This runs with no problem on older versions of Android, e.g. 2.3.3, but on ICS I get a NullPointerException, since actionBar is returned as NULL from getSupportActionBar in this line:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
// Configure action bar
ActionBar actionBar = getSupportActionBar(); <=== returns NULL
...
}
Any ideas?
Carlos