Code example for Parcel

Methods: readDouble, readFloat, readInt, readLong

0
     *  
     * @param in 
     */ 
    Photo(final Parcel in) {
 
        _resourceId = in.readInt();
        _photoId = in.readInt();
        lat = in.readDouble();
        lng = in.readDouble();
//        alt = in.readDouble(); 
        _date = in.readLong();
        if (in.readInt() != 0) {
            thumbUri = Uri.CREATOR.createFromParcel(in);
        } else { 
            thumbUri = null;
        } 
         
        if (in.readInt() != 0) {
            _geoPoint = new GeoPoint(in.readInt(), in.readInt());
        } else { 
            _geoPoint = null;
        } 
        origWidth = in.readInt();
        origHeight = in.readInt();
        distance = in.readFloat();
        direction = in.readDouble();
//        altOffset = in.readDouble(); 
         
        _lastUpdateLat = in.readDouble();
        _lastUpdateLng = in.readDouble();
//        _lastUpdateAlt = in.readDouble(); 
    } 
     
}