Android - How to set a system alarm from my own application

I would like to set a normal Android alarm in my application - the one that is set by default in the Android Clock application. I just want to plan an alarm that will ring, let it speak tomorrow at 8 in the morning. I read about the alarm manager, but it seems to be an event, and I just want it to call. I am pretty sure that there is a simple solution for this, but I could not find it. I will be grateful for any help!

+4
source share
2 answers

I ended up making my own call in BroadcastReceiver as suggested by zapl (thanks!). The problem was that I could not create a dialog that would allow the user to turn off the alarm, however I was able to create a notification that does this, as suggested in the class documentation.

-1
source

It seems that Intent not registered to start the alarm in the Android SDK. Having said that, here are a few resources you can try that should help you with this:

0
source

Source: https://habr.com/ru/post/1400386/


All Articles