Android Parcelable and Serializable

前端 未结 4 1772
醉酒成梦
醉酒成梦 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 17:58

    All the composite objects should also be Parcelable. In case, you want to skip an object then don't use it writeToParcel method.

提交回复
热议问题