Skip to content Skip to sidebar Skip to footer

In App Purchase Nothing Happens Android

Following this guide on in app purchases. Not sure what I'm doing wrong but any help would be amazing! Quite tricky as its in a fragment not the usual activity. Only thing in logs

Solution 1:

You are missing the IabBroadcastReceiver.IabBroadcastListener implementation in the fragment.

Current

publicclassFragment_1extendsFragment { 
  .....
}

Modify Like this

publicclassFragment_1extendsFragmentimplementsIabBroadcastReceiver.IabBroadcastListener{ 
          .....


          .....
          @OverridepublicvoidreceivedBroadcast() {
            android.util.Log.d(TAG, "Received broadcast notification. Querying inventory.");
            mHelper.queryInventoryAsync(mGotInventoryListener);
        }

        }

Post a Comment for "In App Purchase Nothing Happens Android"