Questions tagged [alarmmanager]
Android class providing access to the system alarm services.
4,592
questions
0
votes
0
answers
7
views
Open an app from another app which is running in background
I am trying to develop an application like app scheduling. For this, user can scheduled time for opening an app. For example, let's say, an user scheduled 23:03:2023 09:30:00 time to open Youtube app ...
0
votes
0
answers
6
views
What is the difference between setAndAllowWhenIdle and RTC_WAKEUP for AlarmManager
What would be difference in behavior between a call such as:
setExactAllowWhenIdle(AlarmManager.RTC, ...)
and
setExact(AlarmManager.RTC_WAKEUP, ...)
?
I am confused about the meaning of _WAKEUP vs ...
0
votes
0
answers
15
views
My alarm manager feature is not working in android kotlin
I want to schedule an alarm in my workout app where the user is able to set the alarm for his workout. So to achieve this I am using the alarm manager class to schedule the alarm you can see below the ...
1
vote
1
answer
45
views
How to add multiple alarms in android studio Kotlin?
I'm trying to add alarms to my app that trigger a notification; the problem is, whenever I add a new alarm, the previous one doesn't work.
I think it is because of the request code passed (all alarms ...
0
votes
0
answers
48
views
How to run a scheduled task using AlarmManager and MainActivity MAUI for Android?
I'm trying to do something like alarm, that goes of after some time. No matter is program opened or not.
I have wrote some code in MainActivity, but is throws an error.
using Android.App;
using ...
0
votes
0
answers
10
views
Exact alarm is not firing on WearOS [duplicate]
I want to keep the screen on for a minute on WearOS.
This simple task is such a difficult to handle on Android/WearOS, and all online solutions are simply doesn't work:
class MyActivity: ...
0
votes
0
answers
51
views
setInexactRepeating alarm in Kotlin not triggering
I have set up the following alarm in my main activity oncreate:
// Alarm to start loop
Log.d("TAG", "message about to set alarm")
val alarmManager = ContextCompat.getSystemService(...
0
votes
0
answers
23
views
An Android 12 phone(Samsung S10) doesn't wake up when using setAlarmClock();
I've been testing my alarm app on two phones, one with Android 9.0 and the other with Android 12.0. While using the first one, the phone was able to wake up and open the app as intended, but second ...
-1
votes
0
answers
17
views
Uncheck and enable all checkboxes in fragment from alarmreciever
Im trying to figure out how to clear checkboxes from alarm receiver. i have them in fragment.
TaskFragment.kt
class TaskFragment : Fragment() {
private val viewModel: TaskFragmentViewModel by ...
0
votes
0
answers
15
views
Unable to start my service using AlarmManager class
i'm implementing an android app in which i want to start a service using alarmManager after booting the device . But after the booting , the alarmManager is executed but my service is running . how ...
0
votes
0
answers
32
views
Android: How to create an exact repeating alarm?
I've basically finished my app, except for notifications. Ive gotten notifications to work fine and dandy, EXCEPT for letting them be exact AND repeating. This singular part has taken me two days of ...
0
votes
1
answer
33
views
Does AlarmManager works in background even if app is killed? or we have to use Services for that?
Actually i have implemented AlarmApp in which i want to show notification after some seconds(that user passes) using AlarmManager...now in this case alarm works perfectly fine if app is not killed but ...
0
votes
0
answers
26
views
Alarm Update Flag is it really working in Android 12
I'm using a timer to check the time and set the alarm every 3 minutes so it contains the following line:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
contentIntent ...
0
votes
0
answers
17
views
Alarm package, can't use own sound
I'm implementing a simple clock app and was looking at the example from the package Alarm (https://pub.dev/packages/alarm/example) since it does most of the things I want to do. It works when I try it ...
0
votes
1
answer
42
views
User input to change time of notification
I am writing a app, one of the features is that it delivers a notification at a set time. That time being 7am. Recently however I wanted to add a notification customize menu, Allowing you to change ...
0
votes
0
answers
31
views
How can I set up alarm in Android?
I plan to set up an alarm service in my Android app. My application doesn't even start. It stops at the val pendingIntent = ...
row. What is wrong? How can I fix it?
The function which sets up the ...
0
votes
1
answer
49
views
Why does AlarmManager.AlarmClockInfo catch silent alarms from Tasker?
I am developing a clock app that needs to get the next Alarm triggering time. By "Alarm" I mean the noisy ones to wake up. I do this with
AlarmManager.AlarmClockInfo aci = ((AlarmManager) ...
0
votes
1
answer
22
views
OnNotification click listener
My Android app has local notifications implemented using the Alarm Manager. The app flow is as follows: SplashActivity > BiometricActivity > ProfileActivity > MainActivity > ...
0
votes
1
answer
44
views
Problem with changing sound alarm in Kotlin when I already reselect audio from external storage
I want to try to make alarm Android app experiment in Kotlin so it can change audio sound from external storage, say that I already set the "A" audio sound for alarm sound from the external ...
0
votes
0
answers
40
views
Android Studio daily notification API 31+
I am attempting to set daily notifications in my app, but they only seem to be working one time. Additionally, I am attempting to make it work also on API 31 and higher.
int hourOfDay =...
0
votes
0
answers
74
views
setFullScreenIntent on Android 13 not shown over lock screen
I am trying to use setFullScreenIntent to show my alarm screen when the lock screen is on:
// I am using AlarmManager to send notification at a specific time:
setAlarmClock(AlarmManager....
0
votes
0
answers
85
views
Android Alarm Manager with Kivy not working
I am trying to run a service, declared in buildozer.spec with Alarm Manager, but unfortunately it throws an error. I need Alarm Manager in order to schedule my service to run every day.
Let me just ...
0
votes
0
answers
29
views
AlarmManager does not start for more than a day for a 10-minute setWindow(...)
Periodically I get some messages from FCM. On receiving FCM message, I should schedule AlarmManager.setWindow(10min) for doing some work.
If setWindow(...) is scheduled already, then nothing does:
...
...
0
votes
1
answer
31
views
Best way to schedule repeating jobs (AlarmManager vs Intent-filter)
I have to update Data in my App every 24 hours at 2 am.
Currently, I have an Alarm via the AlarmManager which sends an alarm every 24 hours with the setRepeating method.
In the past I have experienced ...
0
votes
0
answers
13
views
How to execute a method a set time after Alarm is triggered?
I am using Alarm Manager to trigger an alarm at a user picked time using TimePicker. I want to automatically execute a method 1 minute after this alarm. However I cannot figure out how to put the ...
1
vote
1
answer
88
views
Is there a maximum limit time for functions in android alarm manager?
I have an app that runs entirely local/offline, and at midnight (using android_alarm_manager and flutter_local_notifications) it does some processing to create and schedule user notifications based on ...
0
votes
1
answer
50
views
Repeating alarm manager that fires in doze mode
My app utilizes a alarm manager function the when fired runs a broadcaster, it is set to repeat daily at 7am using calendar.
Here is my current code:
val mIntent = Intent(this, MyReceiver::...
0
votes
0
answers
29
views
How to repeat alarm using alarm manager (weekly or daily)
I am making a watering alarm for my application, I want it to alarm based on what I have set (weekly or daily) continuously. The problem is, it only alarm once and is not repeating
This is the switch ...
1
vote
0
answers
69
views
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 ...
0
votes
0
answers
38
views
Pop notification in airplane mode
Is there any way to show the notification from alarm manager while the phone is in airplane mode?
I'm working on an app that uses the background service to display notifications and is testing the ...
0
votes
1
answer
55
views
Updating foreground service everyday at an exact time
I've written an application with a foreground service.
The service notification must be updated precisely at 6 pm every day.
I've tried to achieve this functionality with AlarmManager but most of the ...
0
votes
0
answers
25
views
Scheduling Notification in Android Studio not working, Alarmanager not working
I tried to schedule a notification, but when i run the app it doesn't show up after the 3s delay i set.
I followed this tutorial but it didn't work https://betterprogramming.pub/scheduled-...
0
votes
0
answers
24
views
How to summarize the data collected from OCR in correct order, Android Kotlin
I am a beginner in android development. I planned to write an app that can help the user to set alarm automatically after they import their timetable. I use mlKit image to text and successful transfer ...
0
votes
0
answers
50
views
Explicit Intent not received by manifest registered receiver
Am trying some example alarm clock and trying to separate the data from the ui using the viewModel examples.
Basically I'm trying to set an alarm and as the docs say when it's time comes the ...
3
votes
1
answer
427
views
How to restart android app programmatically
I want to re-start my app through Pending intent. Below code is not working.
val intent = Intent(this, Activity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_CLEAR_TOP
}
val pendingIntentId = ...
0
votes
1
answer
41
views
AndAllowWhileIdle alarms not working when wifi and mobile data off
I have created a broadcast receiver to re schedule alarm.
public class EventReceiver extends BroadcastReceiver {
PowerManager.WakeLock screenWakeLock;
@Override
public void onReceive(...
0
votes
0
answers
30
views
Set multiple Alarms with using AlarmClock.ACTION_SET_ALARM without using PendingIntent
I want to add multiple alarms into Alarm Manager (Android --> Clock --> Alarm) that means that my app should not generate self pending alarms. I will only send the alarm information to ...
0
votes
0
answers
14
views
How to get notification daily perticular time
How to get notification daily perticular time I use alarm manager but it's not working properly after 7 day I didn't get notification
I am using alarm manager but it is not working properly after 1 ...
0
votes
0
answers
14
views
How to check Scheduled Notification in alarm manager
i have To chech my Notification is scheduled scheduled or notin alarm manager.
0
votes
0
answers
12
views
Multiple alarm managers for multiple broadcast recievers
I wish to have 2 notifications sent on my app repeatedly at different intervals. The first one daily and the second one weekly. I currently have the first one running perfectly but the second one won'...
0
votes
1
answer
30
views
Notification runs randomly rather than at set time
I think I have set my alarm manager to run at 7am then at 24 hour intervals after that. It should change a image view and then send a notification. Instead it sends a notification a minute or 2 after ...
0
votes
0
answers
43
views
Increase alarm volume when the alarm is ringing in android kotlin
I am firing an alarm using alarm manager in android(kotlin) .
I want to increase the alarm volume level and set the increased volume to the Ringtone.
I tried it by using a handler and increasing the ...
0
votes
0
answers
126
views
Flutter Android Alarm Manager does not wake up device screen
I've implemented the Android Alarm Manager Plus package for Flutter and the app successfully logs messages of active alarms.
await AndroidAlarmManager.oneShotAt(
alarmTime,
target.id,
...
0
votes
0
answers
55
views
Alarm manager to run function at set time
I am trying to make my program run a function at a set time of day each day. I am new to programming and don't quite get how to fully implement it. I have done research and know I should use alarm ...
0
votes
0
answers
38
views
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 ...
4
votes
0
answers
364
views
How do I schedule a notification in Android 13?
Previous questions on Stack Overflow do not account for Android 13's new permission model, hence I am opening a new question.
My app currently uses an AlarmManager to set a notification for a user at ...
0
votes
0
answers
35
views
calendar notifications push method
I'm aware that google calendar app is able to push events notifications via FCM.
Does default calendars apps bundled with Android OS able to do the same or they just sync events with google's servers ?...
2
votes
1
answer
71
views
Why AlarmClockInfo is earlier than the act?
I was trying to get the next alarm clock, by the following which returns the next clock timestamp of utc wall time.
val alarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
val next =...
0
votes
0
answers
29
views
Android notification not showing after reinstalling the app
I reinstalled the app but the app's notification isn't showing.
To be noted:
The Notification works perfectly fine on emulator just not on a physical device.
And I also tried rebooting the device and ...
0
votes
1
answer
232
views
Android Alarm Manager Plus with Flutter: How to get Id of active Alarm?
I'm quite new to Flutter and trying to implement a simple Alarm App with the Android Alarm Manager Plus package. Below is the example code from the documentation that looks similar. My App ...