Code example for Parcel

Methods: readInt, readString

0
	private String mCallback;
	 
	public AccelerometerEnableParams() {} 
	 
	public AccelerometerEnableParams(Parcel source) {
		mRate = source.readInt();
		mCallback = source.readString();
	} 
	 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(mRate);
		dest.writeString(mCallback);
	} 
	 
	public Integer getRate() {
		return mRate;
	} 
	 
	public String getCallback() {
		return mCallback;