Code example for Parcel

Methods: writeIntwriteLongwriteParcelablewriteString

0
		return 0; 
	} 
 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeLong(guid);
		dest.writeLong(bookID);
		dest.writeLong(ownerID);
		dest.writeInt(status);
		dest.writeInt(hasEbook ? 1 : 0);
		dest.writeString(remark);
		dest.writeParcelable(book, flags);
		dest.writeParcelable(owner, flags);
	} 
 
	public static final Parcelable.Creator<BookOwn> CREATOR = new Parcelable.Creator<BookOwn>() {
 
		@Override 
		public BookOwn createFromParcel(Parcel source) { 
			return new BookOwn(source);