The problem is that if I give the manager a wake-up time, say 07:00, and now 22:25, it will work instantly, if I specify 23:00, it will work at a specified time. How to make it work tomorrow at 07:00? I understand that the easiest way is to explicitly specify the calendar
variable, but are there any other options if I, for example, “don't know” what day and year it is now?
calendar.set(Calendar.HOUR_OF_DAY, timePickerHours); calendar.set(Calendar.MINUTE, timePickerMinutes); alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pendingIntent);