Code example for DatePickerDialog

Methods: updateDate

0
            // Always init the date picker to today's date 
            Calendar cal = Calendar.getInstance();
            iDay = cal.get(Calendar.DAY_OF_MONTH);
            iMonth = cal.get(Calendar.MONTH);
            iYear = cal.get(Calendar.YEAR);
            dateDlg.updateDate(iYear, iMonth, iDay);
			break; 
		} 
		return; 
	} 
 
} 
Experience pair programming with AI  Get Codota for Java