Code example for Parcel

Methods: readDouble

0
		mY = y;
		mZ = z;
	} 
	 
	public AccelerometerParams(Parcel source) {
		mX = source.readDouble();
		mY = source.readDouble();
		mZ = source.readDouble();
	} 
	 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeDouble(mX);
		dest.writeDouble(mY);
		dest.writeDouble(mZ);
	} 
	 
	public void setX(Double x) {
		mX = x;
	}