Is there any way to disable writing inside a date picker using keyboard? As I just want the plus and minus signs to be used to set the date. thanks in advance.
Calendar start = Calendar.getInstance();
int Year = DatePicker.getYear();
int Month = DatePicker.getMonth();
int Day = DatePicker.getDayOfMonth();
start.set(Year, Month, Day);
// DayDatePicker.setDescendantFocusability(DatePicker.FOCUS_BLOCK_DESCENDANTS);
Date periodDate = start.getTime();
int daysToAdd = 280;
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DAY_OF_MONTH,daysToAdd );
System.err.println("-----" +cal.getTime());
int AfterCalc = cal.getTime().getYear()+1900;
System.err.println("-----" + AfterCalc);
int AfterCalc2 = cal.getTime().getMonth();
System.err.println("----" + AfterCalc2);