Code example for Parcel

Methods: readBundle, readByte, readSerializable

0
	 * PARCELLABLE INTERFACE. 
	 *  
	 * Constructor, using a Parcel as source. 
	 */ 
	private BackupFileDetails(Parcel in) {
		mFile = (File) in.readSerializable();
		byte infoFlag = in.readByte();
		if (infoFlag != (byte)0) {
			mInfo = new BackupInfo(in.readBundle());
		} else { 
			mInfo = null;
		} 
	} 
 
	/** 
	 * PARCELLABLE INTERFACE. 
	 *  
	 * Need a CREATOR 
	 */ 
	public static final Parcelable.Creator<BackupFileDetails> CREATOR = new Parcelable.Creator<BackupFileDetails>() {
		public BackupFileDetails createFromParcel(Parcel in) {