Code example for Parcel

Methods: writeIntwriteString

0
		return 0; 
	} 
	 
	@Override 
	public void writeToParcel(Parcel out, int flags) {
		out.writeInt(id);
		out.writeString(content_url);
		out.writeString(content_type);
		out.writeString(title);
		out.writeString(duration);
		out.writeInt(post_id);
	} 
	 
	public String toString() {
		if (title != null && title.length() > 0) {
			return title;
		} else {		 
			try { 
				URL url = new URL(content_url.trim());
				return new File(url.getFile()).getName();
Experience pair programming with AI  Get Codota for Java