For inAppBillingmy application uses the Bazaar API (Iranian Android Market).
Everything is correct, but in Android 5 Lollipop this does not work correctly and returns an error:

After many searches, this similar problem was found and this link is also this ( solutions are similar together)
So, I'm trying to add this line:
serviceIntent.setPackage("ir.cafebazaar.pardakht");
After this line:
Intent serviceIntent = new Intent("ir.cafebazaar.pardakht.InAppBillingService.BIND");
Now the application will return these 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 correctly in versions Android 5 Lollipopthat have a problem with Android 5 Lollipop!
Saeid source
share