IabHelper PurchaseFinishedListener

后端 未结 4 1395
小蘑菇
小蘑菇 2020-12-08 10:34

If I send a purchase intent via the standard

String mySku = \"android.test.purchased\";

mHelper.launchPurchaseFlow(this, mySku, 10001, mPurchaseFinishedLis         


        
4条回答
  •  臣服心动
    2020-12-08 11:21

    For those of you who had the same issue I was experiencing...

    I just made my member variable IabHelper static, and that fixed the issue.

    I already had added AndroidPenguin's code, and was still getting crashes from a null IabHelper, after I had purchased an item(so onActivityResult never had a chance to call handleActivityResult because mHelper was null).

提交回复
热议问题