For inAppBilling
in my app use Bazaar(Iranian Android Market) API.
All things are right but in in Android 5 Lollipop this not work correctly and return error :
After many search found this similar problem and this link too this one.(solutions are similar together
)
So I try to adding this line :
serviceIntent.setPackage("ir.cafebazaar.pardakht");
After this line:
Intent serviceIntent = new Intent("ir.cafebazaar.pardakht.InAppBillingService.BIND");
Now app return this Errors :
java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.List.isEmpty()' on a null object reference
at farahang.tedAmouz.BzrBl.util.IabHelper.Setuping(IabHelper.java:227)
at farahang.tedAmouz.adapters.slideMenuAdapter.onClick(slideMenuAdapter.java:155)
Codes work completely-correctly in under Android 5 Lollipop
versions just have problem with Android 5 Lollipop
!