Code example for Parcel

Methods: writeString, writeTypedList

0
		return 0; 
	} 
 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeTypedList(this);
	} 
 
	public static final Parcelable.Creator<GCAccountMediaCollection> CREATOR = new Parcelable.Creator<GCAccountMediaCollection>() {
 
		@Override 
		public GCAccountMediaCollection createFromParcel(Parcel in) { 
			return new GCAccountMediaCollection(in); 
		} 
 
		@Override 
		public GCAccountMediaCollection[] newArray(int size) { 
			return new GCAccountMediaCollection[size]; 
		} 
	};