Initialization
This page covers the description of the initialization process
//Reading the license from raw resource file
InputStream licInput = getResources().openRawResource(R.raw.regula);
int available = licInput.available();
byte[] license = new byte[available];
//noinspection ResultOfMethodCallIgnored
licInput.read(license);
DocumentReader.Instance().initializeReader(MainActivity.this, license, new DocumentReader.DocumentReaderInitCompletion() {
@Override
public void onInitCompleted(boolean success, String error) {
if (success) {
//initialization successful
} else {
//Initialization was not successful
}
}
});Last updated