How to add the license file to the code samples

All samples require a license file. (Named AbbyyRtrSdk.license in case of free version of Real - Time Recognition SDK or XXXX-YYYY-YYYY-YYYY-YYYY.ABBYY.License where X is a letter and Y is a digit if the license file was provided by sales manager)
 
Copy your license to the assets folder located in the distribution package root and rename the file if necessary. You can also change the license file name in the sample code.
 
Sample

Android:

public class MainActivity extends Activity {

private static final String licenseFileName = "AbbyyRtrSdk.license";
engine = Engine.load( this, licenseFileName );

iOS:

NSString* licensePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"AbbyyRtrSdk.license"];

_engine = [RTREngine sharedEngineWithLicenseData:[NSData dataWithContentsOfFile:licensePath]];

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Recently viewed