Caused by: java.lang.IllegalStateException: Data cannot be saved to intent because its size exceeds intent limit!
You have to use an optimized way for transferring RecognizerBundle between activities while ensuring the data does not get lost when Android restarts the scanning activity.
In you apps onCreate method, right after you set license key, please add this line:
MicroblinkSDK.setIntentDataTransferMode(IntentDataTransferMode.PERSISTED_OPTIMISED);
More information on transferring bundled Recognizer objects can be found in the Github documentation: https://github.com/BlinkID/blinkid-android#-passing-recognizer-objects-between-activities
Here you can check our aMinimalSample where DataTransferMode is set: https://github.com/BlinkID/blinkid-android/tree/master/BlinkIDSample/BlinkID-aMinimalSample
Comments