eclipse - Android style app minSdkVersion="8" targetSdkVersion="21" -


i'm creating app minsdkversion="8" , targetsdkversion="21"

in androidmanifest have:

android:theme="@style/apptheme" 

in file styles.xml:

<style name="appbasetheme" parent="theme.appcompat.light"> </style> <style name="apptheme" parent="appbasetheme"> </style> 

in file values-v11/styles.xml:

<style name="appbasetheme" parent="theme.appcompat.light"> 

in file values-v14/styles.xml:

<style name="appbasetheme" parent="theme.appcompat.light.darkactionbar"> 

the activity extends actionbaractivity

when run app error:

java.lang.illegalstateexception: need use theme.appcompat theme (or descendant) activity.

what need have app running well?

the reason having problem because activity extending actionbaractivity requires appcompat theme applied.

change java inheritance actionbaractivity activity.


Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -