I was looking for a simple example on how to create Parcelable class. I currently have my class as a Serializable, but I experience and discovered in my reading that Parcelable is much faster than Serializable when passing between Activities in android.os.Bundle. Could someone show me how to write these two classes below as Parcelable classes?
Using java Syntax Highlighting
- public class ClassA implements Serializable {
- public long _Id;
- public ClassB classB;
- public java.util.Date date;
- public int anInteger;
- public String aString;
- }
- public class ClassB implements Serializable {
- public String aString;
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Thanks!
gilgantic

