SDKs
Android SDK

SDK Initialization

2min
the sdk behaves as a singleton this means you initialize the sdk only once and use it many times as soon as you initialize the sdk, it will contact the licensespring server to check if there is an existing license for the current computer / product combination if there is a current license available, it will be immediately accessible as a license object at the minimum there are three parameters you will need to initialize the sdk apikey , your company api key productcode , a two letter string identifying product (particular application) sharedkey , company specific encryption key, used when signing requests all of these values are available to you in the licensespring web platform under "sdk integration" section licensemanager takes two arguments for initialization, licensespringconfiguration and application context application context is used for saving license files to internal app storage licensespringconfiguration configuration = licensespringconfiguration builder() apikey("api key") productcode("product code") sharedkey("shared key") appname("my application") appversion("1 0 0") build(); licensemanager manager = licensemanager getinstance(); manager initialize(configuration, getapplicationcontext()); during initialization the licensemanager will try to read the license information from specified license file and check the license information with the license server in case it succeeds licensemanager getcurrent() will return license object with detailed license information specified the sdk has a hardware key generator based on the secure android id if the secure android id is null, uuid will be used as a hardware key