title: Android License App showing Not-licensed?
body: <p>I'am doing an app android license for paid application. In this app i gave base 64 public key &amp; salt 20 random numbers according to my app details. My code is as follows:</p>
  
  <p>initialized variables like this:  </p>
  
  <pre><code>  private static final String BASE64_PUBLIC_KEY = "xxxxxx";
    private static final byte[] SALT = new byte[] {xxxxxxxxxxxxxxxx};
    private LicenseChecker mChecker;
    private LicenseCheckerCallback mLicenseCheckerCallback;
  </code></pre>
  
  <p>in oncreate() doing like this:</p>
  
  <pre><code>   String deviceId = Secure.getString(getContentResolver(),Secure.ANDROID_ID);
     mLicenseCheckerCallback = new MyLicenseCheckerCallback();
     mChecker = new LicenseChecker(this, (Policy) new ServerManagedPolicy(this,
                     new AESObfuscator(SALT, getPackageName(), deviceId)),
                     BASE64_PUBLIC_KEY);
     mChecker.checkAccess(mLicenseCheckerCallback);
  </code></pre>
  
  <p>and My license checker callback function like this:</p>
  
  <pre><code>      private class MyLicenseCheckerCallback implements LicenseCheckerCallback {
             @Override
             public void allow(int result) {
                     if (isFinishing()) {
                             return;
                     }
             }
  
             @Override
             public void applicationError(int errorCode) {
                     if (isFinishing()) {
                             return;
                     }
             }
             @SuppressWarnings("deprecation")
             @Override
             public void dontAllow(int result) {
                     if (isFinishing()) {
                             return;
                     }
                     showDialog(0);
             }
      }
  </code></pre>
  
  <p>from this I exported apk file and Stored as a draft in google play and tested with test accounts which are given in google play as test accounts and same account used in my device also. I tested many times this app everytime it shows only Not Licensed with dialogue. what is the problem?
  plz help me..</p>