We are using Fragments and we don\'t need them to be automatically recovered when the Activity is recreated.
But Android every time when Activity::onCreate(Bundle save
I was having a problem with TransactionTooLargeException
. So thankfully after using tolargetool I founded that the fragments (android:support:fragments) were been in memory, and the transaction became too large. So finally I did this, and it worked great.
@Override
public void onSaveInstanceState(final Bundle outState) {
super.onSaveInstanceState(outState);
outState.putSerializable("android:support:fragments", null);
}