Code example for Time

Methods: parse

0
	public static final Parcelable.Creator<Barcode> CREATOR
		= new Parcelable.Creator<Barcode>() { 
		public Barcode createFromParcel (Parcel in) { 
			Barcode barcode = new Barcode(); 
			barcode.setBarcode(in.readString()); 
			Time time = new Time(); 
			time.parse(in.readString()); 
			barcode.setDateTime(time); 
			barcode.setLabel(in.readString()); 
			barcode.setLocation(Location.CREATOR.createFromParcel(in)); 
			return barcode; 
		} 
 
		public Barcode[] newArray(int arg0) { 
			Barcode [] codes = new Barcode[arg0]; 
			for (int i = 0; i < arg0; i++) { 
				codes[i] = new Barcode(); 
			} 
			return codes; 
		}