Skip to content Skip to sidebar Skip to footer

To Know Next Alarm Time Using SetRepeating() Method

I have times like 9:00 AM, 1:00 PM, 7:00 PM, where I set 3 pending intents that are recursively triggered using setRepeating() method every day. (Here I am saving all these pending

Solution 1:

As I said in the other question, you cannot get this information from the AlarmManager. You would need to store the information yourself in a SharedPreferences so that you can refer to it later.

For example, whenever your alarm goes off, you can update the SharedPreferences to indicate when the next repeat should happen.


Post a Comment for "To Know Next Alarm Time Using SetRepeating() Method"