Code example for Parcel

Methods: writeDoublewriteParcelablewriteString

0
	public int describeContents() { 
		return 0; 
	} 
 
	public void writeToParcel(Parcel dist, int flags) {
		dist.writeString(getMACAddr());
		dist.writeString(getName());
		dist.writeDouble(getIdo());
		dist.writeDouble(getKeido());
		dist.writeParcelable(getIcon(), flags);
		// dist.writeByteArray(bitmapToByteArray(getIcon())); 
		dist.writeString(getProfile());
		dist.writeDouble(getAzim());
		dist.writeDouble(getDist());
	} 
 
	public static final Parcelable.Creator<Node> CREATOR = new Parcelable.Creator<Node>() {
		public Node createFromParcel(Parcel source) { 
			return new Node(source); 
		} 
Connect your IDE to all the code out there  Get Codota for Java