Unable to establish connection for billing applications in android

I am trying to integrate billing v3 in my application. I call the following function to initialize.

public static void SetupInappBilling()
{
    mHelper = new IabHelper(context, base64EncodedPublicKey);
    mHelper.enableDebugLogging(true);
    mHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() 
    {
        public void onIabSetupFinished(IabResult result) 
        {
            if (result.isSuccess())
            {
                Log.e("tag", "connected");
                ConnectionEstablished = true;

            } 
            else
            {
                    Log.e("tag", "not connected");

                    ConnectionEstablished = false;
                }
            }
        });
    }

but I will not return to OnIabSetupFinishedListener Can someone tell me how to fix this problem?

+1
source share
1 answer

As discussed, the implementation example IabHelperignores the return value of the call bindService().

bindService() false, . . bindService() ; .

, , IAB V3 :

  • IAB V2 ( )
  • Google Play .
+3

All Articles