How to set alarm using Alarm Manager API? || Kotlin || Set Repetitive Alarm || Alarm manager Android

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 37

  • @mdev2185
    @mdev2185 3 года назад

    You helped me out for the second time, thanks mate! Keep up the great work.

  • @pantsuslayer8631
    @pantsuslayer8631 3 года назад

    Thanks for the video, its nice how you show the process

  • @tejindersingh103
    @tejindersingh103 3 года назад

    Awsm Vedio Helped me alot
    thx sir

  • @hacco6596
    @hacco6596 3 года назад

    Thank you for what you bring us, and wish you success

  • @shankarm129
    @shankarm129 3 года назад +2

    Very good video. Thanks for explanation, could you please also explain how to make notification work after reboot

  • @SumitGupta-je9br
    @SumitGupta-je9br 3 года назад +3

    Awesome Video
    But I want to ask you something what happened if the device gets reboot
    I read on this from official android documentation, So you have any solution
    If have please tell me :)

  • @ruslangilmanov5414
    @ruslangilmanov5414 3 года назад +2

    How to cancel alarm?

  • @ZeykaFX
    @ZeykaFX 3 года назад +2

    Could you please get a mic that doesn't pick up your keyboard more than your voice? Thanks

  • @osamam.g7194
    @osamam.g7194 3 года назад +1

    what about canceling a single alarm ?

  • @konap7
    @konap7 3 года назад +1

    Hi! Your code is very thorough. Thank you very much! I've done exactly like you do but I cannot get it to work in my app (running Android 10). I've watched your video three times to make sure I didn't miss anything. I've also tried using .set(), .setExact(), .setExactAndAllowWhileIdle() but nothing works. I just want to update a Room DB table at 08:00 and 20:00 every day. Can you please give me some pointers?

    • @yashponam1055
      @yashponam1055 3 года назад

      Even I am using Android 10 and it is not working for me. It just shows for the first alarm but not after every certain time

    • @benferrahnassima183
      @benferrahnassima183 3 года назад

      @@yashponam1055 can u send me the code source pls

    • @yashponam1055
      @yashponam1055 3 года назад

      @@benferrahnassima183 where should I send?

  • @VaradMondkar
    @VaradMondkar 4 года назад

    Nice video 👍
    Need to start with project with alarm feature so have few questions -
    1. Using Alarm Manager a good practice? As it keep running on background, latest OS may kill application from background.
    2. Alarm Manager or Work Manager?
    3. What if we restart the phone will your code work?

    • @foodiedev6642
      @foodiedev6642  4 года назад +2

      1a) Well it depends on your use case. If you want to do perform a particular task in the given exact time. You have to use alarm manager or else go for Work Manager as they have better API for other things. If you get users to ignore battery optimizations for your app. It doesn't affect your alarms.
      2a) As I have mentioned in 1a) --> It all depends on your usecase. Write your usecase so that I can help you out better.
      3a) From the tutorial - Nope it won't work. I have already mentioned about it in the end of the video that I haven't done anything for resetting alarms when the phone restarts or when the app gets updated. I might do a continuation video later for those things.
      Feel free to ask more more questions. Thank you.

    • @VaradMondkar
      @VaradMondkar 4 года назад

      @@foodiedev6642 Got you point. Thanks for you help. Hoping to see your continuation video soon ;)

    • @foodiedev6642
      @foodiedev6642  4 года назад +1

      Let me know if you need anything in specific.. I’ll try to sneak them in a helpful way :)

    • @VaradMondkar
      @VaradMondkar 4 года назад

      @@foodiedev6642 Sure Thanks

    • @vpsaxman
      @vpsaxman 3 года назад

      For #3, see this: developer.android.com/training/scheduling/alarms#boot

  • @arminrorro
    @arminrorro 3 года назад

    Hello, thank you very much for the video.
    I have a question.
    How can I do so that instead of programming the notification through the date and picker dialog they are sent from some variables?
    Well, I already have the date and time to program the notification in some variables and I would not need to program them from these controls.
    Thanks for your help.
    Greetings.

  • @rajasmahadule2697
    @rajasmahadule2697 3 года назад

    Good Video! I think you hate that keyboard.

  • @4mmixa974
    @4mmixa974 2 года назад

    Делай продолжение )

  • @lenhathuy1352
    @lenhathuy1352 2 года назад

    thanks for this video, but i have a problem, i can't cancel that alarm manager. How can i cancel it? pls help me

  • @giannisfragoulis3094
    @giannisfragoulis3094 2 года назад

    I have xiaomi redmi note 7 and the notification is not showing when app is killed..Can anyone help me?

  • @vincentchandra1358
    @vincentchandra1358 3 года назад

    how to make the cancel alarm button?

  • @vladopris1172
    @vladopris1172 3 года назад

    Please do a video where alarms resist phone restarts

  • @anasmuflih451
    @anasmuflih451 2 года назад

    How to make the sound appear tell me the minutes :3

  • @somith16
    @somith16 3 года назад

    make more video

  • @worldmystery124
    @worldmystery124 3 года назад

    Repetitive Alarm not working in samsung A31

  • @saga1658
    @saga1658 3 года назад

    Please try to explains things clearly