Here's the steps:
In the version as of January 2013 You'll possibly receive
Can't start async operation (launchPurchaseFlow) because another async operation(launchPurchaseFlow) is in progress.
Then you can not use the purchase or inventory methods of the IabHelper class, since the async flag will not clear, unless you kill your application.
Here's a possible solution:
I made the flagEndAsync method public and called it in the onRestart method. The questions are: is this a safe solution? And has anyone else seen this issue?
Here's what I added:
protected void onRestart() {
super.onRestart();
if (mHelper != null) mHelper.flagEndAsync();
}
Are you sure you didn't remove the following code (or forgot to add to your activity)
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// Pass on the activity result to the helper for handling
if (!mHelper.handleActivityResult(requestCode, resultCode, data)) {
// not handled, so handle it ourselves (here's where you'd
// perform any handling of activity results not related to in-app
// billing...
super.onActivityResult(requestCode, resultCode, data);
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With