Code example for Parcel

Methods: writeFloat

0
		return 0; 
	} 
 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeFloat(mLatitude);
		dest.writeFloat(mLongitude);
	} 
	 
	public static final Parcelable.Creator<Location> CREATOR = new Parcelable.Creator<Location>() {
		public Location createFromParcel(Parcel in) { 
			return new Location(in); 
		} 
 
		public Location[] newArray(int size) { 
			return new Location[size]; 
		} 
	}; 
}