Reputation: 1934
I've created app that works on every Android version from 2.2 but now that I tried it on my Galaxy Tab running Android 3.2/Honeycomb the app dies on runtime exception!
08-19 23:45:54.800: E/AndroidRuntime(29531): java.lang.RuntimeException: Unable to start activity ComponentInfo{PACKAGE+ACTIVITY HERE}: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.
but in my styles.xml I have declared as my theme
<style name="AppTheme" parent="Theme.Sherlock" />
and on AndroidManifest that
android:theme="@style/AppTheme" >
What is possibly wrong? Works on all other devices!
Upvotes: 1
Views: 591
Reputation: 5160
Sorry if it sounds like a stupid answer but have you checked this:
There is a values-v11 folder for Honeycomb. So maybe you got an Exception because the styles in -v11 were still not on a Sherlock Style and you only changed the ordinary styles in values?
Maybe this helps anyone.
Upvotes: 2
Reputation: 28179
Change parent="Theme.Sherlock"
to parent="@style/Theme.Sherlock
Sadly Android doesn't complain when specifying non-existing parents, so you don't get a compile error for this.
Upvotes: 0