Android LVL: Could not bind to service
Posted
by
josh
on Stack Overflow
See other posts from Stack Overflow
or by josh
Published on 2010-12-25T18:09:14Z
Indexed on
2010/12/27
14:54 UTC
Read the original article
Hit count: 149
android
|android-lvl
Hello,
I'm trying to run LVL on my app but I'm getting this error when debugging on my phone:
ERROR/LicenseChecker(29924): Could not bind to service.
I tried on emulator too and I'm getting the same error, so I decided investigate on LicenseChecker.java and I changed:
boolean bindResult = mContext.bindService(
new Intent(ILicensingService.class.getName()),
this, // ServiceConnection.
Context.BIND_AUTO_CREATE);
to:
boolean bindResult = mContext.bindService(
new Intent("com.android.vending.licensing.ILicensingService"),
this, // ServiceConnection.
Context.BIND_AUTO_CREATE);
but same problem occurs.
I'm testing with SDK 8, any idea how to solve this problem?
Thanks in advance
© Stack Overflow or respective owner