So all of my apps are getting this exception when they run on 5.0. . .
java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=com.android.vending.licensing.ILicensingService }
After googling around I find that this is caused by a bug in Google Licensing code in LicenseChecker.java but the suggested changes are all a little different so I'm not sure what to do. And it blows me away that we are supposed to make mods to Googles code.
The suspect code in my LicenseChecker.java is ...
Log.i(TAG, "Binding to licensing service.");
try {
boolean bindResult = mContext
.bindService(
new Intent(
new String(
Base64.decode("Y29tLmFuZHJvaWQudmVuZGluZy5saWNlbnNpbmcuSUxpY2Vuc2luZ1NlcnZpY2U="))),
this, // ServiceConnection.
Context.BIND_AUTO_CREATE);
We are supposed to add
serviceIntent.setPackage("com.android.vending");
somewhere in that code.
So my questions are (1) is this really the fix? and (2) if so, what exactly should the modified code look like? Thanks, Dean