Code example for Parcel

Methods: writeDoublewriteIntwriteStringwriteTypedList

0
	@Override 
	public void writeToParcel(Parcel out, int flags) {
		// TODO Auto-generated method stub 
		 
		 
		out.writeInt(this.venueId);
		out.writeString(this.name);
		out.writeString(this.address);
		out.writeString(this.city);
		out.writeString(this.state);
		out.writeDouble(this.distance);
		out.writeString(this.foursquareId);
		 
		out.writeInt(this.checkins);
		out.writeInt(this.checkinsForWeek);
		out.writeInt(this.checkinsForInterval);
		 
		out.writeString(this.photoURL);
		out.writeString(this.phone);
		out.writeString(this.formattedPhone);
		 
		out.writeDouble(this.lat);
		out.writeDouble(this.lng);
		 
		//This should be a list of users, need to get that resolved at some point 
		out.writeTypedList(this.arrayCheckins);
		 
	} 
	public static final Parcelable.Creator<VenueSmart> CREATOR = new Parcelable.Creator<VenueSmart>() {
	            public VenueSmart createFromParcel(Parcel in) { 
	                return new VenueSmart(in);