Code example for Parcel

Methods: createStringArrayreadIntreadString

0
	private String[] mSelected;
	 
	public FormPictureSelectParams() {} 
	 
	public FormPictureSelectParams(Parcel source) {
		mId = source.readString();
		mMax = source.readInt();
		mFilter = source.createStringArray();
		mSelected = source.createStringArray();
	} 
	 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(mId);
		dest.writeInt(mMax);
		dest.writeStringArray(mFilter);
		dest.writeStringArray(mSelected);
	} 
	 
	public String getId() {
Contextual code suggestions in your IDE  Get Codota for Java