populateSetDate
用下面的书面方法代替。
public void populateSetDate (int year, int month, int day){ String monthString = String.valueOf(month); if (monthString.length() == 1) { monthString = "0" + monthString; } etPickupDate.setText(new StringBuilder().append(day).append("-") .append(monthString).append("-").append(year).append(" ")); etDropDate.setText(new StringBuilder().append(day).append("-") .append(monthString).append("-").append(year).append(" ")); }