Code example for Parcel

Methods: writeInt, writeList, writeString

0
            return 0; 
        } 
 
        @Override 
        public void writeToParcel(Parcel out, int flags) {
            out.writeInt(page);
            out.writeInt(pageSize);
            out.writeInt(position);
            out.writeString(tagFilter);
            out.writeString(albumFilter);
            out.writeString(sortBy);
            out.writeList(items);
        } 
 
        public static final Parcelable.Creator<ParametersHolder> CREATOR = new Parcelable.Creator<ParametersHolder>() {
            @Override 
            public ParametersHolder createFromParcel(Parcel in) { 
                return new ParametersHolder(in); 
            } 
 
            @Override