Need help?

Please type a word or phrase into the box below to search all our FAQ and support articles.

Android: Data cannot be saved to intent because its size exceeds intent limit!

Follow
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

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments