My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

A solution for piracy on the Android market. This library allows developers to control the behavior of their applications when they have not been purchased from Android market.

There are a number of configuration options:

  • IGNORE - No visual cues given to users, but callbacks are still performed to your code
  • INVITE - User will be invited to purchase the app after a configurable number of validation failures.
    • NAG - Show the invite screen for some configurable number of seconds, but then let the user continue to use your application.
    • BLOCK - Kick the user out of the app after they aknowldedge that the app is stolen.

Validation of purchases is done using the (non-public) Android Market API.

Using the library is simple. Typically add something like the following to your Activity's onCreate method:

   LicenseManager lLicMgr = new LicenseManager();
   lLicMgr.setValidationPolicy(10 /* max failures */,
                               FAILURE_BEHAVIOR_INVITE | FAILURE_BEHAVIOR_NAG, 
                               15000 /* time to display nag */);
   lLicMgr.checkLicense(this /* reference to your activity */);
Powered by Google Project Hosting