Here’s the steps:
- Build and run the InApp V3 sample Trivial Drive example
- Select the buy option
- Hit the back button
- Try to buy again
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)