What to do on TransactionTooLargeException

前端 未结 30 3374
盖世英雄少女心
盖世英雄少女心 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条回答
  •  死守一世寂寞
    2020-11-22 03:44

    This one line of code in writeToParcel(Parcel dest, int flags) method helped me to get rid of TransactionTooLargeException.

    dest=Parcel.obtain(); 
    

    After this code only i am writing all data to the parcel object i.e dest.writeInt() etc.

提交回复
热议问题