Hi David,
I tried to put AAL in my app, Flarecaster, however it doesn't seem
to work?
I published my app and purchased it from the Android Market on my
Nexus One running Android 2.2, but when I run it AAL always failed to
verify the license. So now I have unpublished the app until I can
figure out what's going on.
Will you please help. Here's my code excerpt:
LicenseManager lLicMgr = new LicenseManager();
lLicMgr.setValidationPolicy(0, LicenseManager.FAILURE_BEHAVIOR_INVITE
| LicenseManager.FAILURE_BEHAVIOR_BLOCK |
LicenseManager.FAILURE_BEHAVIOR_NAG, 15000);
lLicMgr.checkLicense(this, new CheckLicenseCallback()
{
Bundle savedInstanceState;
CheckLicenseCallback setInstanceState(Bundle state)
{
this.savedInstanceState = state;
return this;
}
@Override
public void licenseError(int arg0, LicenseException arg1)
{
}
@Override
public void licenseResult(int arg0)
{
if(arg0 == LicenseManager.LICENSE_CONFIRMED)
{
if(savedInstanceState != null)
{
/*Proceed with the app*/
}
else
{
/*Proceed with the app*/
};
}
else if(arg0 == LicenseManager.LICENSE_STATE_UNKNOWN)
{
}
}
}.setInstanceState(savedInstanceState));
If you can help me get AAL working then I will definitely purchase
support for AAL :)
Thanks in advance for your help!
Regards,
Robert
Flarecaster, L.C.
www.Flarecaster.com