Code example for Parcel

Methods: writeBundle

0
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		Bundle bndl = new Bundle();
		bndl.putInt("color", color);
		bndl.putFloat("percentage", percentage);
		dest.writeBundle(bndl);
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java