Akheon23 / marketlicensing

Automatically exported from code.google.com/p/marketlicensing
Apache License 2.0
0 stars 0 forks source link

Crashing in lollipop nexus 5 devices #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
License check crashing in lollipop 5.0 

Original issue reported on code.google.com by nitdu...@gmail.com on 8 Dec 2014 at 10:13

GoogleCodeExporter commented 9 years ago
Crash is in LicenseChecker.java
Here:
   boolean bindResult = mContext.bindService(
                      new Intent(ILicensingService.class.getName()),
                      this,  // ServiceConnection.
                      Context.BIND_AUTO_CREATE);

Error: java.lang.IllegalArgumentException: Service intent must be explicit: 
intent { act=com.android.vendind.licensing.ILicensingService }

Original comment by carlosme...@gmail.com on 4 Feb 2015 at 9:54

GoogleCodeExporter commented 9 years ago
I have experienced the same crash.

As a workaround you can add `.setPackage("com.android.vending")` to the Intent 
launched inside `LicenseChecker.java` to turn it into an explicit Intent.

Original comment by denleybi...@gmail.com on 22 Feb 2015 at 5:25