Reputation: 3432
I am trying to get android licensing to work in my first Android
application.
I have followed the online guides and have integrated the LVL Code using the ServerManagedPolicy.
Regardless of what license test response I set in the developer console I almost always (9 times out of 10) get a LicenseResponse.RETRY. Because DEFAULT_MAX_RETRIES = "0"
this is always converted into NOT_LICENSED
I've tried:
I always get the same result. On the few occasions that I've had a licensed response it has not had any of the extras attached to increase the max retries. I think this is the crux of the problem - the first time I try and license I have no retry or validity period toleration in the default settings.
How can I get this working reliably?
Edit 1
Found this in the logs. Does this imply there is a problem connecting to the android market app?
08-18 21:12:16.071: INFO/LICENSE(10852): checkLicense
08-18 21:12:17.271: INFO/LicenseChecker(10852): Binding to licensing service.
08-18 21:12:17.281: WARN/ActivityManager(80): Unable to start service Intent { act=licensing.ILicensingService }: not found
08-18 21:12:17.281: ERROR/LicenseChecker(10852): Could not bind to service.
08-18 21:12:17.301: INFO/LICENSE(10852): dontAllow
Upvotes: 2
Views: 2725
Reputation: 13477
Make sure that this is in your AndroidManifest:
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
That is required to run the check license code.
Upvotes: 2
Reputation: 8090
There are two things that might help you:
Upvotes: 2