I wanted to know if to spend the day the month and the year with the calender would be that way whenever I try to activate the schedule does not come right ends up activating for the same day
Calendar calNoww = Calendar.getInstance();
Calendar calSett = (Calendar) calNoww.clone();
calSet.set(Calendar.YEAR, a.getVenciano());
calSet.set(Calendar.MONTH, a.getVencimes());
calSet.set(Calendar.DAY_OF_MONTH, a.getVencidia());
calSet.set(Calendar.HOUR_OF_DAY, 7);
calSet.set(Calendar.MINUTE, 0);
calSet.set(Calendar.SECOND, 0);
calSet.set(Calendar.MILLISECOND, 0);
day(calSett);
public void day(Calendar targetCall)
{
Toast.makeText(this, "Alarm is set at" + targetCall.getTime(),
Toast.LENGTH_LONG).show();
Intent intent = new Intent(getBaseContext(), SegundaNotiAguaCasa.class);
PendingIntent pendingintent = PendingIntent.getBroadcast(getBaseContext(), 1, intent, 0);
AlarmManager alarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, targetCall.getTimeInMillis(), pendingintent);
}