Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Unable to add annotations on development mode 1 year 10 months ago #15754

  • descua
  • descua's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Hi! We have a Premium license and we're facing the following issue.
Function AddAnnotRect for a page, allows us to add an annotation when the app is in release mode. But if we're are just in development mode (e.g launching the app from Android Studio itself) always fails, the function returns false. Why can this be happening? It has something to do with the license or is a limitation on the library?
Thank you in advance for your support.

Please Log in or Create an account to join the conversation.

Unable to add annotations on development mode 1 year 10 months ago #15755

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
Is your debug mode using the same package name of release?
remember that the license is strictly tied to the package name/bundled. If you're using a different string while In debugging the license activation will fail.
 

Please Log in or Create an account to join the conversation.

Unable to add annotations on development mode 1 year 10 months ago #15756

  • descua
  • descua's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Ok, so this is the problem, because the debug package has a different name than the release one.
In that case it would be helpful to get a proper message from the library to realize the problem at the first hit.

Thanks for your quickly answer, best regards!

Please Log in or Create an account to join the conversation.

Unable to add annotations on development mode 1 year 10 months ago #15757

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 692
  • Thank you received: 59
When activation of the license fails, it return 0.
The code behind activation isint licenseType = 0;
if (activeStandard(act, mCompany, mEmail, mKey)) licenseType = 1;
else if (activeProfessional(act, mCompany, mEmail, mKey)) licenseType = 2;
else if (activePremium(act, mCompany, mEmail, mKey)) licenseType = 3;
ms_init = (licenseType > 0);
...
...
return ms_init;
from Global.java

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum