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

AlarmManager is not repeating

I can't make AlarmManager repeating. I have tried a lot of examples, but for me they don't work. Alarm always fires only once, then nothing happens. I ran all examples on my device (android 4.4.2) and all the examples work completely the same. Just…
lowercase93
  • 325
  • 1
  • 10
2
votes
1 answer

how to set repeating time in setExact() function of alarm manager

Everyone is here saying use setExact for the API level 19 and higher but couldn't find how to set the repeating time in it so that it get repeated again at specified time. So please tell me how to set the repeating time in setExact method? here is…
Edward Collins
  • 353
  • 3
  • 13
2
votes
1 answer

Set monthly repeating notification in Android

I would like to set a notification at 8th of every month. This is what i did: Intent myIntent = new Intent(remember.this, receiver.class); PendingIntent pendingIntent = PendingIntent.getBroadcast(remember.this, 0, myIntent, 0); …
2
votes
2 answers

How to avoid the alarm triggering when the alarm time is past?

I have scheduled an alarm to trigger on every day 10 AM. I am setting this alarm at 12 AM Monday. If the alarm time is past then the alarm will be triggered immediately. but for my requirement I don't want to trigger immediately. Is fine for me…
M Vignesh
  • 1,586
  • 2
  • 18
  • 55
2
votes
2 answers

android repeating alarm, should repeat on monthly basis and on same day for each month so on after its set

alarm should repeat on monthly basis, once a month on same date for each month so on after its set like if i place alarm on october 31, then it should repeat on 31 of months having 31 days, as we don't have same number of days for each month I'am…
mushahid
  • 504
  • 5
  • 21
2
votes
3 answers

setting alarm on boot time at a specific time every day

I have started alarm of 9:00 AM in android on Boot Completed. But fires alarm every minute after it has completed boot. My Requirement is it should set Alarm after boot but only fires alarm at 9:00 AM. Here is my code: public class AlarmUtil { …
Deepika Lalra
  • 1,035
  • 1
  • 10
  • 24
2
votes
1 answer

Android. Alarm Manager. Repeating alarm does not fire, and after some time, fires all the alarms at once

This is one of the most strange cases I saw. I have an application that performs some task every 5 minutes. I set repeating alarm using the following code: public static final int INTERVAL_SECONDS = 300; public void SetAlarm(Context context) { …
Gari BN
  • 1,635
  • 2
  • 17
  • 31
2
votes
1 answer

Android: set alarm to fire everyday except the weekends

I have read lots of articles, however I did not find/or just missed an answer on my specific quiestion, it is strange cause I think I am trying to implement a common case. Well, what I whant is to set alarm to fire everyday except the weekends, so…
tratto
  • 252
  • 2
  • 11
2
votes
0 answers

AlarmManager repeating function doesn't work as expected

I am using the following code to start alarm which should shows notification daily on time set for breakfast public void scheduleBreakfast(Context ctxt,int hours,int minutes,String state) { final SharedPreferences prefs =…
Sarah Sami
  • 577
  • 1
  • 6
  • 20
2
votes
1 answer

Why does my implementation below is firing alarm at times that the alarm shouldn't go off?

I am implementing an AlarmManager to request an update for my app which should happen only once per day. I don't want the alarm to go off as soon the alarm is created. For this I have created a calendar object. It also fires whenever the alarm is…
Milan
  • 1,845
  • 5
  • 19
  • 33
2
votes
0 answers

Starting my app at 9a.m. and end at 7 p.m

I have a timed start/end requirement I need to start my app at 9a.m. Stop my application at 7p.m. I have used AlarmManager class for the same but unable to trigger my app at 9a.m. AlarmManager alarm = (AlarmManager)…
Tejaswi Parande
  • 95
  • 1
  • 2
  • 8
2
votes
1 answer

How to create a custom alarm which can be set for random days in a week without using local notifications?

I have studied some of the following questions, that are:: 1.) How to set alarm for selected days in iphone? 2.) iPhone alarm using repeated local notifications 3.) How to set the alarm in iPhone and save in local notification? but they all are…
Kuldeep Singh
  • 336
  • 3
  • 12
2
votes
1 answer

Windows Phone recurring alarms on specific weekdays

I'm working on an app where the user needs to be able to create alarms on Windows Phone. The issue I'm hitting is that we want to provide the functionality for an alarm to repeat on specific days (e.g. only mon-fri). The RecurrenceInterval class…
Dan
  • 2,212
  • 20
  • 29
2
votes
2 answers

Starting a service via Alarm does not work

I have the following broadcast reciever that gets called when the phone boots up (Bootreciever.java) and I'm trying to start a service that runs intermittently using a repeating alarm. public void onReceive(Context context, Intent intent) { …
1
vote
0 answers

Android Alarm Manager doesn't fire alarm when application is closed

guys, am currently building an application with compose, and i need to fire a notification at a given time to users, so whenever users click on a button on my list item, i want to get the time of that item and set an alarm pending intent for it, and…