Packet size in bytes
Is there a way to find out the packet size in bytes? My point is that I am storing ordered lists of objects in bundle
on onSaveInstanceState
.
I need to check if the packet size has been reached, the size limit and prevent any data from being saved and also prevent an exception TransactionTooLarge
.
+3
source to share
2 answers