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
4
votes
1 answer

cancel repeating alarm at specific time

I'm looking to cancel 2 repeating alarms at a specific time but the app currently decides to call the cancel as soon as you create the alarms. For example if you set the the time to end repeation at 13:18 then the repeating alarm should repeat until…
4
votes
1 answer

AlarmManager not repeating

I'm coding a 'simple' notificator which consists on calling to a website, checking the response and notifying if there's something new. I'm using a Service to do the http operations and I'd like AlarmManager to repeat the call to the Service with a…
Frank
  • 2,777
  • 5
  • 18
  • 30
3
votes
1 answer

AlarmManager set as PM firing at AM time

The problem I'm using Android's AlarmManager to fire a notification on my app periodically based on a time set by the user on a settings screen. I've followed the documentation to implement that. It's done like the snippet below: fun…
Mauker
  • 11,237
  • 7
  • 58
  • 76
3
votes
0 answers

Alarmmanager not triggering pendingintent always

i am trying to make an alarm app which triggers event at specific time. it shows alarm for 3 times for the specific time. after showing 3 times, it stops. here is my alarm setter class. public class AlarmUtil { private Context context; private…
Star Lut
  • 416
  • 6
  • 11
3
votes
3 answers

Schedule daily alarm after app install

I want to execute a BroadcastReceiver once a day. Scheduling an alarm when the device boots works well, but it requires the device to be rebooted at least once. How can I schedule the alarm right after app install (and still persist the scheduling…
sdabet
  • 18,360
  • 11
  • 89
  • 158
3
votes
0 answers

Alarm manager trigger every time app running

I want to create a repeating alarm from AlarmManager which is triggered at 21:00 every day to show a notification. So i create a service and declare that in manifest, in the service class i wrote a method for schedule repeating alarms. public static…
user2549089
  • 281
  • 2
  • 4
  • 14
3
votes
1 answer

Setting a repeating Notification with an AlarmManager - Android

I am using a TimePicker to get a specific time from the user. I am then using this time to set a repeating alarm at this time every day. When the alarm goes off i want a Notification to go be sent to user. My code seems to be right and i am not…
Wildblue09
  • 337
  • 1
  • 3
  • 13
3
votes
0 answers

AlarmManager skips alarms set using set() / setExact() in a 48hrs+ cycle

In an app I have to regularly sync data to a server which happens at a fixed interval (mostly) of 5mins. I am using set() / setExact() depending upon if Build API >= 19. Now, for most of the time the alarm gets fired and does it's job but…
beerBear
  • 969
  • 2
  • 17
  • 41
3
votes
2 answers

How to schedule alarm weekly in android ?

I want to schedule an alarm according to the desired days E.g. sunday,tuesday,thursday. I have scheduled it according to time but not able to do as week days. Below is code: private void StartScheduler(Context context) { Calendar startTimmer…
3
votes
0 answers

Repeating alarm runs more than once

Intent myAlarm = new Intent(context, AlarmReceiver.class); PendingIntent recurringAlarm = PendingIntent.getBroadcast(context.getApplicationContext(), 0, myAlarm, PendingIntent.FLAG_CANCEL_CURRENT); AlarmManager alarms = (AlarmManager)…
DillPixel
  • 955
  • 1
  • 14
  • 20
3
votes
0 answers

Android - One-time inexact alarm?

I am working on an app that periodically polls server for new data (I know I should use GCM, but its not an option here). I am using AlarmManager.setInexactRepeating() to atleast allow system to batch networking request to save some battery. However…
urSus
  • 12,492
  • 12
  • 69
  • 89
3
votes
2 answers

Android BatteryManager Returns only 1

I am attempting to read the state of the Android battery when my repeating alarm broadcaster is called I have the following setup: public class RepeatingAlarm extends BroadcastReceiver { @Override public void onReceive(Context…
eWizardII
  • 1,916
  • 4
  • 32
  • 55
3
votes
2 answers

local notification repeatinterval with a specific minute of the hour

I'm trying here to repeat a local notification for every hour. so I tried this sample code: UILocalNotification *reminderNote = [[UILocalNotification alloc]init]; reminderNote.fireDate = [NSDate dateWithTimeIntervalSinceNow:60 * 60]; …
3
votes
1 answer

Best way to set multiple alarms when some are of repeating in nature in Android

I'm building a reminders application where one time, weekly, monthly reminders and we notify the user of the reminder on due date and time. Reminders can be updated any time by the user to update the reminding time or delete the reminder altogether.…
Gautham
  • 3,418
  • 3
  • 30
  • 41
2
votes
2 answers

Alarm manager alarms disappear after running app from Android studio

I'm adding alarms via AlarmManager. Checking with this command if the alarm exist: adb shell dumpsys alarm After setting the alarm (repeating alarm setRepeating()), if I close the app via back button or close via task manager, the alarm is still…
Pavel Poley
  • 5,307
  • 4
  • 35
  • 66
1
2
3
15 16