Code example for Parcel

Methods: writeBooleanArraywriteStringwriteValue

0
			return 0; 
		} 
		 
		@Override 
		public void writeToParcel(Parcel out, int flags) {
			out.writeString(message);
			out.writeBooleanArray(new boolean[] {isFinish});
			out.writeValue(handler);
		} 
		 
		public void readFromParcel(Parcel in) {
			message = in.readString();
			boolean[] bAry = new boolean[] {};
			in.readBooleanArray(bAry);
			isFinish = bAry[0];
			handler = (Handler) in.readValue(Handler.class.getClassLoader());
		} 
	}