| Start |
|---|
Making a custom object Parcelable. |
| Parcelable object containing another Parcelable object An example of a class that contains a parcelable class inside: Owner is just a normal parcelable class. |
Using Enums with Parcelable This is preferable to (for example) using an ordinal, because inserting new values into your enum will not affect previously stored values RemarksIt is important to remember that the order in which you write fields into a Parcel MUST BE THE SAME ORDER that you read them out from the parcel when constructing your custom object. The parcelable interface has a strict 1 MB size limit. That means that any object, or combinations of objects, you put into a parcel that take up over 1MB of space will become corrupted on the other side. This can be hard to discover, so keep in mind what kind of objects you plan to make parcelable. If they have large dependency trees, consider another way in which to pass data around. |
Read Article
https://develop.horje.com/learn/1434/reference