The base you are having this problem is cause the activity you are attempting to apply the dialog theme to is extending
ActionBarActivity which needs the
AppCompat theme to be applied.
AppCompatActivity would even have this issue
In this instance, alter the Java inheritance from
Activity and omit the dialog theme in the manifest as it is, a non
The general rule is that in case you want your code to backing older versions of Android, it must have the
AppCompat theme and the java code must extend
AppCompatActivity. In case you have *an activity that doesn't require this support, such as you just care about the latest versions and features of Android, you can utilize any theme to it however the java code should extend plain old
At the time alter from
AppCompatActivity (or a subclass,
Activity, should also alter the several calls with "support" to the similar call without "support". Hence, instead of
All you require to do is include
android:theme="@style/Theme.AppCompat.Light" to your application tag in the
I had the error explained at the top of the post and occured after I included an alert dialog. I have all the pertinent style information in the manifest. My problem was solved by altering a context reference in the alert builder - I altered:
min sdk is 10.
ActionBar is available from api level 11. So for 10 you would be employing
AppCompat from the support library for which you require to employ
Theme.AppCompat or descendant of the same.
Or in case you dont want action bar at the top
Your application has an AppCompat theme
However, you overwrote the Activity (which extends AppCompatActivity) with a theme that isn't descendant of an AppCompat theme
You could identify your own fullscreen theme like so (notice
AppCompat in the
<style name="AppFullScreenTheme" parent="Theme.AppCompat.Light.NoActionBar">
Then fixed that on the Activity.