Code example for Parcel

Methods: writeList

0
		return 0; 
	} 
 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeList(pages);
	} 
 
	public static class Page implements Parcelable {
 
		public static final Parcelable.Creator<Page> CREATOR = new Parcelable.Creator<Page>() {
			public Page createFromParcel(Parcel in) { 
				return new Page(in); 
			} 
 
			public Page[] newArray(int size) { 
				return new Page[size]; 
			} 
		}; 
 
		private final String name;