Code example for Parcel

Methods: readBooleanArray, readLong, readString

0
        } 
 
        @Override 
        public Podcast createFromParcel(Parcel source) { 
            Podcast ret = new Podcast(); 
            ret.setId(source.readLong()); 
            ret.setTitle(source.readString()); 
            ret.setDescription(source.readString()); 
            ret.setLogoUrl(source.readString()); 
            ret.setLogoFilePath(source.readString()); 
            ret.setUrl(source.readString()); 
            ret.setLastUpdate(source.readLong()); 
            boolean localAddDel[] = new boolean[2]; 
            source.readBooleanArray(localAddDel); 
            ret.setLocalAdd(localAddDel[0]); 
            ret.setLocalDel(localAddDel[1]); 
            return ret; 
        } 
    }; 
}