1 of 1 people found this helpful
CySmart Android Source Code uses Bundles to share data between activities. Bundles are intents objects which are intended to be used across process boundaries such as with IPC/Binder transactions, between activities with intents.
The error occurs because the activity was trying to send saved state Bundles to the system OS for safe keeping for restoration later (after a config change or process death) but that one or more of the Bundles it sent were too large. There is a maximum limit of about 1MB for all such transactions occurring at once and that limit can be reached even if no single Bundle exceeds that limit.
Now I'm not sure why it is exceeding the 1MB mark in your case and crashing which is what we need to look into. Please share the complete logcat file so that we can get more insight on this. Also, what is the application you have running on the peripheral side.
A simple fix would be to just change the targetSDKVersion to 23 in the build.gradle file. In android versions lower than 7.0, this exception is just a warning and doesn't crash the application.
For more information refer: Parcelables and Bundles | Android Developers
Reducing the SDK to 23 does allow the application processes to complete and display our data. Although many frames are lost, so the apparent responsiveness of the app is poor.
Unfortunately the application running on the external hardware isn't available to us.
The logcat that I can read (mainly from inside Android Studio) is completely taken over by the repetition of the error I described in the first post. Can you suggest a way to stream the logcat to a PC file? Or increase the file size considerably, I have already doubled it but now I can see twice as many errors.
Please follow these steps to save the logcat log into a file:
- Right-click in the logcat messages window, choose select all. Then your save will be all logcat messages in that window (including the ones scrolled out of view).
- When focus is in logcat messages window, type control-A, this will select all messages. Then save etc. etc.
Attach it here so that we can get more insight on the error.