Android Parcelable and Serializable

前端 未结 4 1777
醉酒成梦
醉酒成梦 2020-12-05 17:37

So i know it is recommended to use Parcelable instead of Serializable in android, because it is faster.

My question is: is that impossible to avoid using Serializabl

4条回答
  •  情话喂你
    2020-12-05 18:00

    I came to point where Parcelable is an issue for me. On Android 4.3, I am getting unmarhalling exception, when passing data between Activities as Parcelable. It works OK on Android 4.0, 4.2 or 4.4. It should work when changed to Serializable, even though, it is slower.

提交回复
热议问题