Code example for Parcel

Methods: writeIntwriteParcelablewriteSerializablewriteStringList

0
	public int describeContents() { 
		return 0; 
	} 
 
	public void writeToParcel(Parcel parcel, int flags) {
		parcel.writeSerializable(this.syncRequestOperation);
		parcel.writeInt(this.syncFiles ? 1 : 0);
		parcel.writeInt(this.tablesToSync != null ? 1 : 0);
		parcel.writeStringList(this.tablesToSync);
		parcel.writeParcelable(this.syncServiceRunningNotification, flags);
		parcel.writeParcelable(this.syncServiceCompletedNotification, flags);
	} 
	 
	public static final Parcelable.Creator<SyncIntentServiceRequest> CREATOR = new Parcelable.Creator<SyncIntentServiceRequest>() {
		public SyncIntentServiceRequest createFromParcel(Parcel in) { 
		    return new SyncIntentServiceRequest(in); 
		} 
		 
		public SyncIntentServiceRequest[] newArray(int size) { 
		    return new SyncIntentServiceRequest[size]; 
Stop searching for code, let great code find you!  Add Codota to your java IDE