Code example for Parcel

Methods: writeFloat

0
			return 0; 
		} 
 
		@Override 
		public void writeToParcel(Parcel dest, int flags) {
			dest.writeFloat(lat);
			dest.writeFloat(lon);
		} 
	} 
	 
	public static class Stops implements Parcelable {
		 
		public Stops () { 
			path = new ArrayList<Loc>();
			predictions = new ArrayList<Integer>();
		} 
		 
		public Stops(Parcel in) {
			readFromParcel(in);
		}