Code example for Parcel

Methods: readInt, readString

0
		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() { 
            public FeedCategory createFromParcel(Parcel in) { 
                return new FeedCategory(in); 
            } 
  
            public FeedCategory[] newArray(int size) { 
                return new FeedCategory[size]; 
            }