Questions tagged [repeatingalarm]

Alarm in Android that will be repeated after a certain pre-defined time interval.

Alarm in Android that will be repeated after a certain pre-defined time interval. Can be set through AlarmManager class.

238 questions
2
votes
2 answers

Android set alarm manager when another is finished

I tried to use the setRepeating of AlarmManager, and then I read that the method isn't working anymore in API 26+, so the another solution was to schedule each alarm when the previous is finish. How can I do that? MainActivity.java public class…
Ziv Sion
  • 424
  • 4
  • 14
2
votes
1 answer

Android AlarmManager does not trigger when app is killed

I have a requirement to perform a task at exactly every 5 minutes. I have considered multiple options and have attempted to implement this using the AlarmManager class to trigger the task. However I cannot get the alarm to trigger when the…
2
votes
1 answer

Alarm not waking my service while the app is closed

I want a service to be started every n minutes. This works, but only if the app is running (active on the screen or inactive, minimalised). When I close it (tap right bottom button and swipe to the side), the service stops being started. Setting up…
Martin Heralecký
  • 5,649
  • 3
  • 27
  • 65
2
votes
1 answer

Using setExact() in broadcast receiver to repeat

Scenario: Production line workers perform checks at certain time intervals. On my app the user enters this time interval into a textbox. There is date and time pickers so that the user can select when the process started. I am trying to fire an…
TheAlmac2
  • 193
  • 2
  • 15
2
votes
3 answers

Set repeat alarm for every year in android

I am building an alarm application in android.Till now i am able to create repeat alarm for every day,week and every month. Now my requirement is to set repeat alarm for every year. TIA
Karan sharma
  • 1,511
  • 1
  • 13
  • 37
2
votes
1 answer

setAlarmClock(info,pi); to work as setRepeating()

I used setRepeating() for repeating alarms as per my app requirement. Here, I would also like to know the next alarm that was set using setRepeating() .whereas I couldn't find any of the solutions that give me next alarm time using an alarm that was…
2
votes
0 answers

How to fix excessive wakeups in android

Recently i received an performance report from google play store(Android Vitals) and the report is given below Excessive Alarm Manager wakeups Percentage of battery sessions during which users experienced more than 10 wakeups per hour. A battery…
Sarath Kumar
  • 1,922
  • 3
  • 19
  • 43
2
votes
1 answer

alarm manager not working while updating interval time

after reading all the QA i didnt get any proper solution. I have 2 problems 1. Alarm fires twice even if i register my receiver only in manifest.(not by code) 2. when i update interval time of alarm it gets fires randomly here is my method for set…
Bipin Gawand
  • 521
  • 1
  • 6
  • 17
2
votes
0 answers

How to repeat the alarm till particular date

I'm trying to set repeating alarm between two dates. for that I set repeating alarm first using starting date and then just setting a single alarm on last date, for that i'm using other broadcast receiver on the cancel date, so that when the last…
2
votes
0 answers

Can't get exact alarm at specific time android

I am newbie in android. I want to do some work everyday at a specific time. My work is to fetch one data from database and to show to the user. I used onReceive method to do that work. I put below code to the OnCreate method SharedPreferences prefs…
2
votes
1 answer

Alternative for alarm manager for periodic background tasks

I need to allow user to use my app even if network is not available and make server calls when network is available. I am using alarm manager-broadcast receiver- service pattern. I periodically retry to make api calls. I also added the boot…
2
votes
1 answer

Alarm Manager not scheduling alarm properly

I am setting alarm usng this Calendar now = Calendar.getInstance(); Calendar alarm = Calendar.getInstance(); alarm.set(Calendar.HOUR_OF_DAY,21); alarm.set(Calendar.MINUTE,30); if (alarm.before(now)) { …
Akki
  • 123
  • 2
  • 12
2
votes
0 answers

How to reset alarm after reboot Android Studio

I'm making an Alarm app which opens an activity based on time picked by User. Everything's working perfectly fine but alarm gets reset by reboot. I made an ON BOOT RECEIVER which works but I want to restart the Alarm only if the user wants it to go.…
2
votes
1 answer

What is the correct way to use repeating alarms for short intervals in Android 5.0+?

So I need to send coordinates from my current location to a server, in very short frequences (30 seconds). Right now I am doing it with AlarmManager setRepeating(), but Android 5.0+ allows intervals from up to 1 minute to save battery. My question…
2
votes
2 answers

Android-Multiple Alarms with different timings fires at wrong time

I have four Repeating Alarms in my app each of which fires at different timings to do some important tasks. They are Alarm 1 - 12:30 AM Alarm 2 - 01:00 AM Alarm 3 - 06:00 AM Alarm 4 - 12:15 PM Every alarm fires no problems. Time interval for each…
1 2
3
15 16