Code example for Parcel

Methods: writeInt, writeString

0
		return 0; 
	} 
 
	@Override 
	public void writeToParcel(Parcel out, int flags) {
		out.writeInt(id);
		out.writeString(title);
		out.writeInt(unread);
		out.writeInt(order_id);
	} 
	 
	public void readFromParcel(Parcel in) {
		id = in.readInt();
		title = in.readString();
		unread = in.readInt();
		order_id = in.readInt();
	} 
	 
	@SuppressWarnings("rawtypes") 
	public static final Parcelable.Creator CREATOR =
    	new Parcelable.Creator() {