Questions tagged [android-alarms]

Android alarms is the facility provided by Android through AlarmManager to start an intent at a given time (by passing a pending intent).

Android alarms is the facility provided by Android through AlarmManager to start an intent at a given time (by passing a PendingIntent) which can be used to start an activity or a service or send a broadcast.

AlarmManager Class Reference

1179 questions
2
votes
2 answers

How to set alarms using alarm manager running every weekdays

Hey guys I'm using alarm manager to run my application at specific point of time. I want to run my application on every weekdays ( Mon-fri ) so could you please tell me how to do this.
Jasra
  • 353
  • 3
  • 6
  • 19
2
votes
0 answers

How do You Track a Rouge Alarm?

I have this app release in Android that notifies the user everyday at specific time (for example 10:00 pm). I didn't use setRepeating as it was not recommended on higher APIs from 21 up. The following was the pseudo code I used to keep resetting the…
2
votes
0 answers

Android: If you use an AlarmManager to wake up the phone, does the phone go to sleep as soon as your task completes?

If the phone does fall asleep as soon as you are done keeping it up, that brings me to the second curiosity question: How often can the phone wake up and fall asleep before it becomes inefficient? (more waste than staying on the whole time)
700 Software
  • 85,281
  • 83
  • 234
  • 341
2
votes
1 answer

Time-based notification in Oreo

I am working on a task scheduling app that reminds me of a task at a certain time. I used to implement this with getSystemService(AlarmManager.class).set(RTC_WAKEUP, millis, pendingIntent);. Then a IntentService gets started later and shows a…
Sah
  • 1,017
  • 2
  • 11
  • 19
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
0 answers

Android alarm manager pending intents lost

This is my first post and I am new to Android App development so please bear with me. I have written (and use every day) a pretty good reminders App because all the others were either too complicated or too simple. It is also on the play store,…
Phil
  • 21
  • 2
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

How to store and delete alarms for respective object

i have a little problem and i'll be very gratefull if you could help me. I have an app like a local database for client medicins, when adding an pill he has the posibility to add a reminder when he needs to take that specific pill. He can set only…
2
votes
0 answers

Android M exact alarms?

i recently upgraded my phone to android m and i am trying to get my alarm app working. I have always been using set and setExact to schedule my alarms but now in android m they seems to be obsolete. I have tried setExactAndAllowIdle and…
scottyaim
  • 71
  • 1
  • 7
2
votes
2 answers

Run scheduled task once a day on Android

My Android application helps users to follow their daily plan by sending notifications at a specific time. This task is easy to solve with JobScheduler. It seems easy, light and up to date solution. What I'm struggling with is how to plan all…
2
votes
0 answers

Android Repeated Alarm manager call receiver infinite times

I have set one alarm in repeated mode for every 24 hours. So Alarm receiver should be call on the time set only once but it calls repeatedly. Why? Here is I am attached my code to set alarm: AlarmManager alarmMgr = (AlarmManager)…
2
votes
1 answer

How can I prevent two different alarm alert dialog that are triggered by two pending intents with different request code at same time

While creating an alarm application with multiple alarms Am using PendingIntent with different request codes and an AlarmService to display dialog .During this even before first dialog is snoozed or dismissed the second dialog pops up.How can I…
2
votes
1 answer

alarm manager/ service/ broadcast receiver is not working after app is closed or swiped away from the recent app

I know there are so many questions about this. I tried most of them and spent so much time on it. but not getting any solution Actually, I want a background process to run to infinite time even app is removed from recent app I want to take GPS…
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

Why does Android's alarm manager forgets alarms?

I set alarms to notify the user on different times. I check with "adb shell dumpsys alarm" and they look like RTC_WAKEUP #2: Alarm{433c7328 type 0 com.app.package} type=0 whenElapsed=89936417 when=+9h8m5s417ms window=-1 repeatInterval=0…
Jomo
  • 91
  • 9