Code example for Parcel

Methods: writeInt, writeList, writeLong, writeString

0
	 * Writing current data to parcel. 
	 * @see android.os.Parcelable#writeToParcel(android.os.Parcel, int) 
	 */ 
	@Override 
	public void writeToParcel(Parcel out, int flags) {
		out.writeInt(id);
		out.writeString(title);
		out.writeString(description);
		out.writeString(body);
		out.writeList(stops);
		out.writeList(lines);
		out.writeLong(validFrom);
		out.writeLong(validTo);
		out.writeInt(important ? 1 : 0);
	} 
	 
	/* 
	 * Used for bundle.getParcel  
	 */ 
    public static final Parcelable.Creator<DeviData> CREATOR = new Parcelable.Creator<DeviData>() {
		public DeviData createFromParcel(Parcel in) {