I am getting TransactionTooLargeException in an activity only when a particular fragment is added in it. The exception happens only when the app is sent to background and brought back or when the phone is locked and unlocked.
I had logged the app and found that although onPause() is being invoked when app goes to background, onResume(), onStart(), onRestoreInstanceState() etc is not invoked when app is brought to foreground.
The app doesn't throw the exception when the fragment is added in normal flow only if app goes to background the exception is thrown and the app is closed. Any idea what could be the root cause here?