Open GoogleCodeExporter opened 8 years ago
Got the same problem here sometimes.
Please fix!
Original comment by ti08m...@gmail.com
on 18 Jan 2014 at 9:22
Facing same issue.
java.lang.IllegalStateException: IabHelper was disposed of, so it cannot be
used.
at com.android.vending.billing.library.IabHelper.checkNotDisposed(IabHelper.java:297)
at com.android.vending.billing.library.IabHelper.queryInventory(IabHelper.java:548)
at com.android.vending.billing.library.IabHelper.queryInventory(IabHelper.java:527)
at com.android.vending.billing.library.IabHelper$2.run(IabHelper.java:626)
at java.lang.Thread.run(Thread.java:856)
please any fix for it.
Original comment by bipinva...@gmail.com
on 14 Feb 2014 at 9:02
I had crashes with the same error message on activity startup. Managed to stop
receiving them with (pseudocode follows)
public void init(){
if(mIabHelper == null){
mIabHelper = new IabHelper(mContext, "PUBLIC_KEY_FROM_DEV_CONSOLE");
mIabHelper.startSetup(...);
mContext.bindService(...);
}
}
public void close(){
if( mIabHelper != null ){
mIabHelper.dispose();
mIabHelper = null;
}
mContext.unbindService(...);
}
// Then in My Activity class:
public void onCreate(...){
//...
init();
}
public void onDestroy(){
// ...
close();
}
Don't know if it's the most elegant solution, but in my case it worked. Hope it
helps
Original comment by olmo...@gmail.com
on 10 Mar 2014 at 9:16
We've received few crash reports for this issue. checkNotDisposed() is being
used in multiple methods. Please fix it.
Original comment by glovant...@gmail.com
on 18 Apr 2014 at 6:44
Original issue reported on code.google.com by
dirk.fa...@gmail.com
on 19 Sep 2013 at 3:50