Code example for Parcel

Methods: writeFloat

0
			value = source.readFloat();
		} 
 
		@Override public void writeToParcel(Parcel dest, int flags) {
			super.writeToParcel(dest, flags);
			dest.writeFloat(value);
		} 
 
		public SavedState(Parcelable superState) {
			super(superState);
		} 
 
		@SuppressWarnings("unused") public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() {
			@Override public SavedState createFromParcel(Parcel in) { 
				return new SavedState(in); 
			} 
 
			@Override public SavedState[] newArray(int size) { 
				return new SavedState[size]; 
			} 
		};