Code example for Parcel

Methods: writeIntwriteLongwriteParcelablewriteString

0
		return "spend: " + spent + " category: " + category + " date: " + date.toString() + " detail: " + detail + " bank: " + bank + " sms_id: " + sms_id;
	} 
 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(spent);
		dest.writeInt(installment);
		dest.writeString(category);
		dest.writeLong(date.getTimeInMillis());
		dest.writeString(detail);
		dest.writeParcelable(location, flags);
		dest.writeString(bank);
		dest.writeInt(sms_id);
		dest.writeInt(uploaded);
	} 
	 
	public static final Parcelable.Creator<ParsedData> CREATOR = new Parcelable.Creator<ParsedData>() {
		@Override 
		public ParsedData createFromParcel(Parcel source) { 
			return new ParsedData(source);