Code example for Parcel

Methods: writeDoublewriteLong

0
		return 0; 
	} 
	 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeDouble(latitude);
		dest.writeDouble(longitude);
		dest.writeLong(date);
		dest.writeLong(elapsed_time);
	} 
	 
    public static final Parcelable.Creator<HistoryItem> CREATOR = new Parcelable.Creator<HistoryItem>() {
        public HistoryItem createFromParcel(Parcel in) { 
            return new HistoryItem(in); 
        } 
 
        public HistoryItem[] newArray(int size) { 
            return new HistoryItem[size]; 
        } 
    }; 
Connect your IDE to all the code out there  Get Codota for Java
4
CodeRank