Bundle size in bytes : <p><strong>Is there any way to know the bundle size in bytes?</strong> My point in asking this is I am saving parcelable object lists in my <code>bundle</code> on <code>onSaveInstanceState</code>. </p>

<p>I need to check if the bundle size is reached it's size limit and prevent any more data to get saved, and to prevent <code>TransactionTooLarge</code> exception to occur.</p>
