 new DatePickerDialog(MainActivity.this,                         new DatePickerDialog.OnDateSetListener() {                             @Override                             public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {          Calendar calendar = Calendar.getInstance();     