Why does Android "TrivialDrive v3 Billing Sample" not allow multiple asynchronous calls?

I am using the utilities from Android "TrivialDrive v3 Billing Sample" and like many people I am getting the error:

java.lang.IllegalStateException: Unable to start asynchronous operation (launchPurchaseFlow) because another async operation (launchPurchaseFlow) is in progress.

This has been covered on a number of threads (like here or here ), and all places are suggesting try / catch or changing the "async operation running" state to avoid this failure.

These approaches don't make sense to me as the former requires me to implement retry mechanisms / errors in my application, and the latter tinkers with this library thread (you might as well remove that "").

My question is , what is the reason for the "1 asynchronous operation at a time" limitation in IabHelper?

If there is a real reason, then perhaps each method should throw an error that will force the developer to turn to it. If it doesn't, I think removing the "throwing illegal state ..." code should be removed.

+3
android in-app-billing


source to share


No one has answered this question yet

See similar questions:

66
Android payment in app: unable to start asynchronous operation because another async operation is in progress (in progress)
36
Android In App Billing: Unable to launch launchPurchaseFlow because PurchaseFlow is in progress

or similar:

36
Android In App Billing: Unable to launch launchPurchaseFlow because PurchaseFlow is in progress
23
billing in the application does not work: "IAB Helper is not configured"
nine
Does the app support multiple accounts billing?
8
Why can't a Google Market billing example be generated in a signed release?
3
Problems with Android billing app
3
How does IN_APP_NOTIFY work when refunds are made using Android In-App Billing?
1
How are international currencies for Android billing tested in the app?
1
Why isn't my billing service called?
0
BindService malfunction in android app in real device
0
TrivialDrive showing "This version of the app is not configured for billing ..."



All Articles
Loading...
X
Show
Funny
Dev
Pics