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.


public class MainActivity extends Activity {
private static final String licenseFileName = "AbbyyRtrSdk.license";
engine = Engine.load( this, licenseFileName );


NSString* licensePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"AbbyyRtrSdk.license"];
_engine = [RTREngine sharedEngineWithLicenseData:[NSData dataWithContentsOfFile:licensePath]];


Was this article helpful?

3 out of 6 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.