Code example for Parcel

Methods: writeArray

0
		return mDevices;
	} 
 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeArray(mDevices);
	} 
 
	@Exclude 
	public static final Parcelable.Creator<WiFiP2PDiscoverParams> CREATOR = new Parcelable.Creator<WiFiP2PDiscoverParams>() {
		@Override 
		public WiFiP2PDiscoverParams createFromParcel(Parcel source) { 
			return new WiFiP2PDiscoverParams(source); 
		} 
 
		@Override 
		public WiFiP2PDiscoverParams[] newArray(int size) { 
			return new WiFiP2PDiscoverParams[size]; 
		} 
	};