I used setRepeating() for repeating alarms as per my app requirement. Here, I would also like to know the next alarm that was set using setRepeating() .whereas I couldn't find any of the solutions that give me next alarm time using an alarm that was set with setRepeating(). Even I posted the same question but I got to know that we cant get.(Link here -->) how to know next alarm time using setRepeating() method.
whereas somewhere I found we can get next alarm details using setAlarmClock -
alarmManager.setAlarmClock(new AlarmManager.AlarmClockInfo(date.getTime(),pendingIntent),pendingIntent);
AlarmManager.AlarmClockInfo alarmClockInfo= alarmManager.getNextAlarmClock();
But the thing is setAlarmClock() is a onetime Alarm setting approach. whereas I need a repeating mechanism.
Correct me if my assumptions are untrue and also somewhere if I am not clear in explaining.
Please suggest me in this regard, will be very thankful for any of your suggestions.
Thanks in Advance
Note: both questions are not same.Because I am asking how could I achieve setRepeating kind of capability in setAlarmClock method.whereas the other post is asking for next alarm capability in the setRepeating method