Code example for Parcel

Methods: writeBooleanArray, writeInt, writeIntArray, writeStringArray

0
	public int describeContents() { 
		return 0; 
	} 
 
	public void writeToParcel(Parcel out, int flag) {
		out.writeInt(nsen);
		out.writeStringArray((String[]) names);
		out.writeIntArray(types);
		out.writeBooleanArray(act_list);
		out.writeIntArray(rates);
	} 
	 
	public static final Parcelable.Creator<CSensorStates> CREATOR
	= new Parcelable.Creator<CSensorStates>() { 
		public CSensorStates createFromParcel(Parcel source) { 
			return new CSensorStates(source); 
			} 
 
		public CSensorStates[] newArray(int size) { 
			return new CSensorStates[size]; 
		}