Skip to main content
Inspiring
March 19, 2013
Question

Android Expansion Files and License Verification Library

  • March 19, 2013
  • 1 reply
  • 763 views

Hi all,

I'm strugling with the libraries to verify a person's purchase in order to download play store hosted expansion files.

I got the downloading of expansionfiles and unpacking (from an own domain) down, but since it is for a purchased application and the .obb files will be stored in the play store, I need to check the purchase before I can download (right?).

I'm going by the following article:

http://www.adobe.com/devnet/air/articles/android-licensing-native-extensions.html

After getting all the latest SDK's (Android and AIR) I still get errors from the Adobe provided .java files.

First, the package name of Anroid's

com.android...LicenseChecker.java

is changed to:

com.google.android...LicenseChecker.java

Fine, I can change it's import in com.adobe.air.sampleextensions...AndroidLicenseCheckerCallback.java

However...

com.adobe.air.sampleextensions...AndroidLicenseCheckerCallback.java then begins to complain about the method LicenseChecker.allow( int ) not being implemented. OK, I can write that method if need be (not quite clear what to fill it with though)

Worse probably is that a number of consts ( CHECK_IN_PROGRESS, INVALID_PACKAGE_NAME ) and s'mores can not be resolved. Maybe because the overridden applicationError's parameter ApplicationErrorCode can not be resolved either... .

(I got android.jar and FlashRuntimeExtensions.jar linked OK)

sigh...

Does anyone know of more recent/functioning libraries? Or am I on the wrong track all together?

Thanks in advance,

Manno

This topic has been closed for replies.

1 reply

Inspiring
March 20, 2013

[daytime again]

ofcourse the unresolved consts cannot de defined inApplicationErrorCode.

Still open for advice though...