Code example for Time

Methods: parse

0
		} 
		 
		Time departure = new Time();
		departure.parse(pBundle.getString(RIDE_DEPARTURE));
		 
		Time arrival = new Time();
		arrival.parse(pBundle.getString(RIDE_ARRIVAL));
		 
		Ride ride = new Ride(mDriver, pBundle.getBoolean(RIDE_REPEAT),
				source, destination, departure, arrival, pBundle.getInt(RIDE_SEATS));
		 
		addRide(ride);
	} 
	 
	public void addRide(final Ride pRide) {
	    Button ride = new Button(this);
	    ride.setText(pRide.getSource().getLocality());
	    ride.setLayoutParams(new LayoutParams(
	    		ViewGroup.LayoutParams.MATCH_PARENT,
	    		ViewGroup.LayoutParams.WRAP_CONTENT));
Experience pair programming with AI  Get Codota for Java