class DatePickerDialog extends AlertDialog implements DatePopup, NumberPicker.OnValueChangeListener {

    protected Calendar newCalendarFromPicker() {
        Calendar newCalendar = Calendar.getInstance();
        newCalendar.set(yearPicker.getValue() - 543, monthPicker.getValue(), 1);

        if (dayPicker.getValue() > newCalendar.getActualMaximum(DAY_OF_MONTH)) {
            dayPicker.setValue(newCalendar.getActualMaximum(DAY_OF_MONTH));
        }
        dayPicker.setMaxValue(newCalendar.getActualMaximum(DAY_OF_MONTH));
        newCalendar.set(DAY_OF_MONTH, dayPicker.getValue());
        return newCalendar;
    }

    public  DatePickerDialog(Context context);
    public  DatePickerDialog(Context context, DatePickerCallback datePickerCallback);
    public  DatePickerDialog(Context context, Calendar calendar, DatePickerCallback datePickerCallback);

}