|
Project Information
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:
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 */);
|