-
Notifications
You must be signed in to change notification settings - Fork 91
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
IllegalStateException on Google Play billing when started twice #29
Comments
I am currently also experiencing this issue. My older apps (which probably aren't using 2.4) are not.
|
disable the button as soon as it's pressed
|
And if you want to press the button a second time? |
you can reenable the button as soon as the first transaction has finished
(in onactivityresult)
|
Have you properly delegated the results like done in https://github.com/SufficientlySecure/donations/blob/master/example/src/main/java/org/sufficientlysecure/donations/example/DonationsActivity.java#L84 ? |
Sorry, my bad. It seems like I didn't the on activity created part. All is working now for me |
The README should be improved to describe the usage of the onActivityResult delegation. |
I have same issue. My onActivityResult is the same as in example. My code is here https://github.com/btimofeev/UniPatcher/blob/master/app/src/google/java/org/emunix/unipatcher/ui/activity/DonateActivity.java Android 6.0.1 |
I added a better explanation to the README to pass through results to the fragment in onActivityResult. I don't know why other crashes still happen. |
As far as i know its not allowed to run multiple asynctask for google in app billing.But this library is creating new tasks if pressed donate button twice.Maybe it needs to check if a task is already running and react according to it.
The text was updated successfully, but these errors were encountered: