In registration, the user must indicate his birthday. So he should choose a date from a DatePicker. Is it possible to not showing the dates > actual date in the DatePicker ?
private void showDatePicker()
{
DatePickerFragment date = new DatePickerFragment();
Calendar calender = Calendar.getInstance();
Bundle args = new Bundle();
args.putInt("year", calender.get(Calendar.YEAR));
args.putInt("month", calender.get(Calendar.MONTH));
args.putInt("day", calender.get(Calendar.DAY_OF_MONTH));
date.setArguments(args);
date.setCallBack(ondate);
date.show(getActivity().getSupportFragmentManager(), "Date Picker");
}