Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Market Licensing (LVL) always returns RETRY
    primarykey
    data
    text
    <p>I am trying to use Android Marketing Licensing within an, as yet, unpublished app.</p> <p>I have installed and integrated the LVL libraries using the ServerManagedPolicy.</p> <p>The problem is that, without exception, LicenseCheckerCallback.dontAllow is called with the response 'RETRY' when the license check is run.</p> <p>I've read through many posts on this subject and ...</p> <ul> <li>the manifest file contains the CHECK_LICENSE permission</li> <li>I am running exactly the same .apk file as I have uploaded to the developer account</li> <li>I have added a test user to the developer account</li> <li>The response is the same on an emulator running 2.2 and a device running 2.3</li> <li>The response is the same whether logged in as the test or developer user </li> <li>The response is the same whether I have selected LICENCED or NOT_LICENCED within the developer account</li> <li>Although both emulator and device have an internet connection at all times, the response is actually the same when no connection is present</li> <li>The code isn't obfuscated at the moment</li> </ul> <p>My code is basically that provided by the documentation ...</p> <pre><code>String deviceId = Settings.Secure.getString(getContentResolver(),Settings.Secure.ANDROID_ID); mLicenseCheckerCallback = new MyLicenseCheckerCallback(); mChecker = new LicenseChecker( this, new ServerManagedPolicy(this, new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY); mChecker.checkAccess(mLicenseCheckerCallback); </code></pre> <p>What options do I have left to get this working?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload