Code example for Parcel

Methods: writeArray

0
		return 0; 
	} 
 
	public void writeToParcel(Parcel dest, int flags) {
		try{ 
			dest.writeArray(this.toArray());
		}catch(Exception e){
			// The array is not parcelable.. ok? 
		} 
	} 
	 
	@SuppressWarnings("unchecked") 
	@Override 
	public void _setObject(Object newValue, Collection<Object> initiators) {
		if (newValue instanceof ArrayListObservable && this != newValue) {
			mArray=((ArrayListObservable<T>)newValue).mArray;
			initiators.add(this);
			this.notifyChanged(initiators);
		} 
	}