Open GoogleCodeExporter opened 8 years ago
This might also work as an fix:
else {
// no service available to handle that Intent
if (listener != null) {
listener.onIabSetupFinished(
new IabResult(BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE,
"Billing service unavailable on device."));
}
mServiceConn = null;
}
Original comment by martinv...@gmail.com
on 4 Nov 2013 at 3:56
I use this way, more robust:
if (!mContext.getPackageManager().queryIntentServices(serviceIntent, 0).isEmpty()) {
// service available to handle that Intent
mServiceBound = mContext.bindService(serviceIntent, mServiceConn, Context.BIND_AUTO_CREATE);
}
Original comment by huster.z...@gmail.com
on 7 Nov 2013 at 5:12
Original issue reported on code.google.com by
martinv...@gmail.com
on 4 Nov 2013 at 3:21