Code example for Parcel

Methods: writeInt, writeString

0
		return 0; 
	} 
  
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.name);
		dest.writeString(this.sort);
		dest.writeInt(this.albumCount);
	} 
 
	public static final Parcelable.Creator<Artist> CREATOR =
			new Parcelable.Creator<Artist>() { 
            public Artist createFromParcel(Parcel in) { 
                return new Artist(in); 
            } 
  
            public Artist[] newArray(int size) { 
                return new Artist[size]; 
            } 
        }; 
}