Code example for Parcel

Methods: writeDoublewriteLongwriteString

0
        return hashCode();
    } 
 
    @Override 
    public void writeToParcel(Parcel parcel, int flags) {
        parcel.writeLong(getId());
        parcel.writeString(getDescription());
        parcel.writeString(getCategory());
        if (getPictureUri() == null) 
            parcel.writeString("");
        else 
            parcel.writeString(getPictureUri().getPath());
        parcel.writeString(getAddress1());
        parcel.writeString(getAddress2());
        parcel.writeDouble(getLatitude());
        parcel.writeDouble(getLongitude());
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java