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

TOPIC:

Global.Init with arguments not available anymore 1 year 5 months ago #15779

  • simone.p
  • simone.p's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Back in ViewLib version Android - 3.55.4 I used to init the module by passing arguments to the Init function in this way:com.radaee.pdf.Global.Init(
myInstance as ContextWrapper,
RADAEE_LICENSE_TYPE,
RADAEE_COMPANY,
RADAEE_EMAIL,
RADAEE_KEY
)Now in version 3.65.21 I can't anymore.
Ho do i initialize the ViewLib module by passing those arguments at runtime?

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

Global.Init with arguments not available anymore 1 year 5 months ago #15780

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
dear user:
now we write these parameters in begin of com.radaee.pdf.Global class:
public static String mCompany = "radaee";
public static String mEmail = "This email address is being protected from spambots. You need JavaScript enabled to view it.";
public static String mKey = "LNJFDN-C89QFX-9ZOU9E-OQ31K2-5R5V9L-KM0Y1L";

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

Global.Init with arguments not available anymore 1 year 5 months ago #15783

  • simone.p
  • simone.p's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 0
Why?
I have many licences and need to pass those data at runtime.
I find it very ugly to have to modify manually your LIB in order to make it work..

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

Global.Init with arguments not available anymore 1 year 5 months ago #15784

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
sorry, for not convience.
you may wrap a Init method in Global classs like:
static public boolean Init(ContextWrapper act, int license_type, String company, String email, String key)
{
mCompany = company;
mEmail = email;
mKey = key;
return Init(act);
}
The following user(s) said Thank You: simone.p

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

Last edit: by radaee.
  • Page:
  • 1
Powered by Kunena Forum