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

android alarm died during onReceive

i have a timer app, which wakes up the device with system alarms (RTC_WAKEUP) and opens my app. after thousands of successful alarms, it just happend, that the set alarm was not completely successful. it died during onReceive() and did not start my…
shelll
  • 3,234
  • 3
  • 33
  • 67
2
votes
2 answers

AlarmManager is blocking main thread

I have implemented an AlarmManager which calls a Service. The problem is that although I'm launching it in AsyncTask, it's blocking the main thread. This is the source of my AsyncTask: private class NotificationsServiceTask extends AsyncTask
Alex
  • 6,957
  • 12
  • 42
  • 48
2
votes
2 answers

how to clear previous alarms in alarm manager?

i am developing one alert app in that i am using alarm manager concept in that user can select no. of days before to came alert(ex.if he select 5 days the alert will come before 5 days) comparing days list is coming from sqlite data base.i write…
NareshRavva
  • 823
  • 3
  • 21
  • 50
2
votes
1 answer

Does AlarmManager keep the Wifi awake, or is wakeLock needed?

I'm using the AlarmManger to schedule a keep alive timer to remote server, so every INTERVAL an UDP package are send to the server. Should I get a Wifi/CPU lock when the package sent or running on the AlarmManager context is enough? Note: I'm…
mantemac
  • 31
  • 2
2
votes
0 answers

Flutter android alarm manager plus works in emulator periodically but not working in real device?

I am using flutter android alarm manager package to get local notifications periodically. It's working perfectly in the emulator but when I am generating an apk file and installing the app in a real android device through that apk file it's not…
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
2
votes
1 answer

how set alarm along with notification?

i've been doing on my alarm project.. my code is like this : String a = interval.getText().toString(); Intent myIntent = new Intent(AndroidAlarmService.this, MyAlarmService.class); pendingIntent =…
Handy
  • 99
  • 1
  • 2
  • 9
2
votes
0 answers

Flutter android_alarm_manager_plus does not work reliably

I want to schedule daily notifications at a specific daytime with the android_alarm_manager_plus and the local_notifications plugins. However, the notifications come in very irregulary. The delay of the notifications increases each consecutive…
2
votes
0 answers

Flutter background service not working using android_alarm_manager_plus or flutter_background_fetch

I'm working on a Flutter app only for Android, and I want to register a background service. I've tried exactly how it's being mentioned on the plugin page, but unfortunately, I cannot make it run properly. android_alarm_manager_plus The main purpose…
Philipos D.
  • 2,036
  • 1
  • 26
  • 33
2
votes
1 answer

Scheduling a background task periodically on Android

I'm working on an app where I have to read data from multiple sensors and send it to a remote server every 15 minutes. This has to be done when the app is closed/killed as well and I also have to be sure it always executes. I also want to be sure it…
2
votes
1 answer

How to update badge count with android alarm manager which calls a function

I have a problem. I have an alarm manager which triggers a function static Future callback() async but I would like to update my IconBadge every time this function is triggered so that it always goes up one number. I tried it with setState in…
2
votes
0 answers

Flutter - android_alarm_manager not working in other screen except main method in android

I am working with android_alarm_manager, and followed this steps:- // 1. added permission // 2. added …
Jay Mungara
  • 6,663
  • 2
  • 27
  • 49
2
votes
2 answers

How to correctly cancel an AlarmClock alarm set by AlarmManager in the Clock app?

This question already has answers here, here and here. But they were not confirmed by OPs to be working, and in my case, the alarm set by the same PendingIntent doesn't get canceled. Is there a way to cancel an AlarmClock alarm? @Override protected…
2
votes
1 answer

how to implement system Alarm Clock in my applications?

How do implement an alarm clock in my application. i want to implement an alarm that is similar to system alarm. or Any Intent that i can use to set system alarm from my application.
Ashwani Kumar
  • 834
  • 3
  • 16
  • 30
2
votes
0 answers

Updating a widget more frequently than 30 minutes

Lots of answers, none of which work. Should you use a service or an alarm or a timer? All of the answers seem to just be a random guess. In this example in onDisable what is the point of creating a new instance of AppWidgetAlarm and then calling…
Richard Barraclough
  • 2,625
  • 3
  • 36
  • 54