Code example for Parcel

Methods: writeInt, writeLong, writeString

0
		return 0; 
	} 
 
	public void writeToParcel( Parcel dest, int flags )
	{ 
		dest.writeLong( id );
		dest.writeInt( calendar_id );
		dest.writeString( event_timezone );
		dest.writeLong( dt_start );
		dest.writeLong( dt_end );
		dest.writeString( duration );
		dest.writeString( title );
		dest.writeString( description );
	} 
 
	public static final Parcelable.Creator< Event >	CREATOR	= new EventCreator();
 
	private static final class EventCreator implements Parcelable.Creator< Event >
	{ 
		public Event createFromParcel( Parcel in )
		{