Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You need to use a Theme.AppCompat theme (or descendant) with this activity #49

Closed
mlayton20 opened this issue Apr 1, 2016 · 1 comment

Comments

@mlayton20
Copy link

I was having the following error when I tried using the code in an Activity:

You need to use a Theme.AppCompat theme (or descendant) with this activity

This is because in my AndroidManifest.xml I'm using the following theme:
android:theme="@android:style/Theme.NoTitleBar"

Changing the above to the below for the Activity that shows the RateApp dialog fixed this for me.
android:theme="@style/Theme.AppCompat.NoActionBar"

I got this solution from the below article:
http://stackoverflow.com/questions/21814825/you-need-to-use-a-theme-appcompat-theme-or-descendant-with-this-activity

@jewom
Copy link

jewom commented Mar 12, 2019

For me, using RateThisApp.showRateDialog(this) instead of RateThisApp.showRateDialog(applicationContext) work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants