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

command line - Use qwinsta in PowerShell ISE -

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

Python website log in: BIG-IP can not find session information in the request -