Code example for Parcel

Methods: readDouble, readLong, readString

0
    public TagInfo() { 
        this(-1); 
    } 
 
    public TagInfo(Parcel data) {
        setId(data.readLong());
        setDescription(data.readString());
        setCategory(data.readString());
        setPictureUri(data.readString());
        setAddress1(data.readString());
        setAddress2(data.readString());
        setLatitude(data.readDouble());
        setLongitude(data.readDouble());
    } 
 
    public long getId() { 
        return mId;
    } 
 
    public void setId(long id) {
        mId = id;