What to do on TransactionTooLargeException

前端 未结 30 3751
盖世英雄少女心
盖世英雄少女心 2020-11-22 03:08

I got a TransactionTooLargeException. Not reproducible. In the docs it says

The Binder transaction failed because it was too large.

D

30条回答
  •  萌比男神i
    2020-11-22 03:46

    You have clear your old InstanceState from onSaveInstanceState method, and it will work well. I am using FragmentStatePagerAdapter for my viewpager so I keep below Override method into my parent activity for clear InstanceState.

    @Override
    protected void onSaveInstanceState(Bundle InstanceState) {
                 super.onSaveInstanceState(InstanceState);
                 InstanceState.clear();
    }
    

    I found this solution from here android.os.TransactionTooLargeException on Nougat

提交回复
热议问题