I’m trying to make a small application that shows a notification for each 10 minutes until reach 2 hours then the alarm should stop, when I used setRepeat() it works well but I couldn’t stop it as I mentioned in my prevoise question HERE,,
I tried with many ways, but it still, there’s a problem alarm didn’t stop…
I have an idea to use mAlarmManager.set() inside loop, I wrote a code but the loop only start alarm for one time..
so, I’m here to ask how can I implement this idea and showing notification for each 10 minutes until 2 hours !!!
I’ll be so appreciated if you help
thanks in advance …
You can set alarm within a for loop too.
Example: