Code example for Parcel

Methods: writeValue

0
		 * @param parcel the Parcel in which the object should be written. 
		 * @param flags additional flags about how the object should be written. 
		 */ 
		@Override 
		public void writeToParcel(Parcel parcel, int flags) {
			super.writeToParcel(parcel, flags);
			parcel.writeValue(fanart);
			parcel.writeValue(thumbnail);
		} 
 
		/** 
		 * Construct via parcel. 
		 */ 
		protected BaseDetail(Parcel parcel) {
			super(parcel);
			fanart = parcel.readString();
			thumbnail = parcel.readString();
		} 
 
		/** 
		 * Generates instances of this Parcelable class from a Parcel.