in app purchase - Bazaar(Iranian Android Market) inAppBilling error in Android 5 Lollipop -
for inappbilling
in app use bazaar(iranian android market) api.
all things right in in android 5 lollipop not work correctly , return error :
after many search found this similar problem , this link this one.(solutions similar together
)
so try adding line :
serviceintent.setpackage("ir.cafebazaar.pardakht");
after line:
intent serviceintent = new intent("ir.cafebazaar.pardakht.inappbillingservice.bind");
now app return errors :
java.lang.nullpointerexception: attempt invoke interface method 'boolean java.util.list.isempty()' on null object reference @ farahang.tedamouz.bzrbl.util.iabhelper.setuping(iabhelper.java:227) @ farahang.tedamouz.adapters.slidemenuadapter.onclick(slidemenuadapter.java:155)
codes work completely-correctly in under android 5 lollipop
versions have problem android 5 lollipop
!
for binding play services this:
intent = new intent("com.android.vending.billing.inappbillingservice.bind"); i.setpackage("com.android.vending"); mcontext.bindservice(e, this.serviceconnection, context.bind_auto_create);
maybe there wrong setpackage
replace
i.setpackage("com.farsitel.bazaar");
instead of
i.setpackage("ir.cafebazaar.pardakht");
Comments
Post a Comment