Code example for Parcel

Methods: writeIntwriteStringwriteValue

0
		readFromParcel(in);
	} 
 
	@Override 
	public void writeToParcel(Parcel out, int flags) {
		out.writeInt(appHashId);
		out.writeValue(hasMd5Sum);
		if(hasMd5Sum){
			out.writeString(md5sum);
		} 
	} 
 
	public void readFromParcel(Parcel in) {
		this.appHashId = in.readInt();
		this.hasMd5Sum = (Boolean) in.readValue(null);
		if(hasMd5Sum){
			this.md5sum = in.readString();
		} 
	}