I have a question regarding AlarmManager and how to stop it when the app is accidentally closed.
My AlarmManager is repeating its alarm every 30 minute. Now when a user accidentally closes the app the alarm is still working. That is not so bad, because for a certain time it is intended to do so, but as soon as the user wants to stop the repeating alarm it is not working anymore ( a feature of the AlarmManager ). So, the user has to reboot Android.
Is there another way to stop the AlarmManager although the app is closed?
Maybe, someone has an example for me?
Thank you very much!
Best Regards, Bernd