Since i haven’t seen any threads regarding canceling an alarm without using any button, or invoking in onClick. I decided to ask this question as well as i would like to also include the question, (since its somewhat related to each other), regarding assigning or invoking alarms simultaneously with different trigger time, because I’ve read that if you set another alarm, it will just stop the previous alarm. but i don’t want that, I’m assigning alarms with different trigger times. As for my main question, how do i stop/cancel automatically say, for a certain period of time i.e 5 min, or if it already repeated 3 times then it will automatically stops the alarm.
Since i haven’t seen any threads regarding canceling an alarm without using any button,
Share
Since nobody quite got my point, I did a few quick tweaks and found out that my logic was quite off, Sorry. What i did was implement a snooze and dismiss function, and as for firing alarms with different trigger time simultaneously, i just had to formulate a different
requestCodeforsetRepeating()and same goes forset()<– if intend to use this method, the requestCode will be used to cancel the correct alarm fired as together with the same signature of the intents you used to fire the alarm..