I activate my alarm by means of datepicker and timepicker, but I would like to know if it is possible to activate the alarm by means of an editText with mm / dd / yyyy?
My code to activate it by the datepicker and timepicker.
private void setAlarm(Uri passuri){
Calendar cal = Calendar.getInstance();
cal.set(datePicker.getYear(),
datePicker.getMonth(),
datePicker.getDayOfMonth(),
timePicker.getCurrentHour(),
timePicker.getCurrentMinute(),
00);
Intent intent = new Intent(getBaseContext(), pruebaintento.dos.notif.AlarmReceiver.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(
getBaseContext(),
RQS_1,
intent,
PendingIntent.FLAG_CANCEL_CURRENT);
AlarmManager alarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), pendingIntent);