Pixel Punch
- Forum posts: 2
Jun 3, 2011, 1:58:27 PM via Website
Jun 3, 2011 1:58:27 PM via Website
Hi,
I'm trying get some licensing code from AndroidPit working, but I get "Unable to start service Intent". Basically code looks like this:
I tried passing ILicenseService class explicitly:
but I still get the same problem.
I managed to get Android Market LVL library working which uses identical code, so I don't really understand why it fails to find "de.androidpit.app.services.ILicenseService", but manages to find "com.android.vending.licensing.ILicensingService".
Most of the answers I found here say that you need to append stuff to your AndroidManifest.xml, but you don't anything for "com.android.vending.licensing.ILicensingService" to work, so I guess I shouldn't need anything "de.androidpit.app.services.ILicenseService" (they both derive from android.os.IInterface).
Note: I'm trying to integrate this licensing code into Unity, which is probably making it more complicated. Maybe someone has working integration already?
Thanks in advance.
I'm trying get some licensing code from AndroidPit working, but I get "Unable to start service Intent". Basically code looks like this:
1Intent licenseIntent = new Intent("de.androidpit.app.services.ILicenseService");
2 if (mContext.bindService(licenseIntent, this, Context.BIND_AUTO_CREATE))
3 {
4 // success
5 }
6 else
7 {
8 // failure (I get this all the time)
9 }
2 if (mContext.bindService(licenseIntent, this, Context.BIND_AUTO_CREATE))
3 {
4 // success
5 }
6 else
7 {
8 // failure (I get this all the time)
9 }
I tried passing ILicenseService class explicitly:
1Intent licenseIntent = new Intent(mContext, de.androidpit.app.services.ILicenseService.class);
but I still get the same problem.
I managed to get Android Market LVL library working which uses identical code, so I don't really understand why it fails to find "de.androidpit.app.services.ILicenseService", but manages to find "com.android.vending.licensing.ILicensingService".
Most of the answers I found here say that you need to append stuff to your AndroidManifest.xml, but you don't anything for "com.android.vending.licensing.ILicensingService" to work, so I guess I shouldn't need anything "de.androidpit.app.services.ILicenseService" (they both derive from android.os.IInterface).
Note: I'm trying to integrate this licensing code into Unity, which is probably making it more complicated. Maybe someone has working integration already?
Thanks in advance.
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.