How serializable differ from parcel?
Parcels are used in Binders. We use parcels for only IPCs, for normal serialization we use serializables.
Parcels are used in Binders. We can use and also suggestible to use parcels for any kind of serialization use cases.
Binders are used in Parcels. We use Serializables for only IPCs, for normal serialization we use parcels.
Both are same, you can use any of them in any serialization scenarios.
Parcel is not a general-purpose serialization mechanism.This class is designed as a high-performance IPC transport. used heavily in IBinders. for normal serialization concepts, use Serializables. since serializables are heavy and takes time, we use Parcels for IPC in embedded devices.
Back To Top