Android in app billing (IAB) onIabSetupFinished not being called -


working from this have implemented iab , appears set correctly when execute

mhelper.launchpurchaseflow(this, "android.test.purchased", 10001,               mpurchasefinishedlistener, "bgoa+v7g/yqdxvkrqq+jtfn4uqzbpiqjo4pf9rzj"); 

i sent correct iab purchase test.

however code below never seems output logging

        mhelper = new iabhelper(this, key);      mhelper.startsetup(new iabhelper.oniabsetupfinishedlistener() {        public void oniabsetupfinished(iabresult result) {           if (!result.issuccess()) {              // oh noes, there problem.              log("problem setting in-app billing: " + result);           } else {              log("oniabsetupfinished " + result.getresponse());              mhelper.queryinventoryasync(mgotinventorylistener);           }        }     }); 

note: own static log method being called , there no problem it.

once set want check purchases doesn't appear called, neither mpurchasefinishedlistener.

anyone know may doing wrong?

after lunch switched on debug in ianhelper.java , code appears working now.

boolean mdebuglog = true; // line 75 

i cannot see reason why wasn't working before. must user error, wrong apk installed or that! never know!


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -