Code example for Parcel

Methods: writeLong, writeString, writeTypedList

0
	 * (non-Javadoc) 
	 * @see android.os.Parcelable#writeToParcel(android.os.Parcel, int) 
	 */ 
	public void writeToParcel(Parcel dest, int flags) {
		// write the content to a parcel 
		dest.writeString(sender);
		dest.writeString(recipient);
		dest.writeString(type);
		dest.writeLong(timestamp);
		dest.writeTypedList(content);
	} 
	 
	/* 
	 * This defines how to regenerate the object 
	 */ 
	public static final Parcelable.Creator<ComplexMeshMS> CREATOR = new Parcelable.Creator<ComplexMeshMS>() {
        public ComplexMeshMS createFromParcel(Parcel in) { 
            return new ComplexMeshMS(in); 
        } 
 
        public ComplexMeshMS[] newArray(int size) {