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
11
votes
2 answers

difference between RTC and RTC_WAKEUP in android

i am new to android i have to perform some operation after every 30 min whether my application is running or not so i want to how to perform these operation using service and alarm manager any example or running will be helpfull
CodingRat
  • 1,934
  • 3
  • 23
  • 43
10
votes
2 answers

Cancelling a single alarm when you have multiple alarms

I have used the same pendingIntent to set multiple alarms using different intentId for each. the alarm is working. Now i want to cancel a particular alarm. If i use the cancel() method i would end up cancelling all the alarms. I want only a specific…
flamesavor
  • 139
  • 3
  • 9
10
votes
5 answers

Android full screen notification won't show over the lock screen

I'm trying to create an android full screen notification to show an activity over the lock screen, like an alarm clock. The notification always occurs, but the activity is never started over the lock screen; it just rings and shows a notification…
10
votes
1 answer

Lollipop API for controlling the Alarm icon in status bar

This is a Lollipop-specific question, since the API has changed. To find out how to do this on earlier versions, see related question: Controlling the Alarm icon in status bar I would like to know how to turn on / off the system Alarm icon in the…
10
votes
3 answers

Repeat alarm everyday accurately (Alarm manager)

I set an alarm to repeat everyday. but it will have a few seconds or minutes error. How can I make it more accurate? PendingIntent pendingIntent = PendingIntent.getBroadcast(getActivity(), notificationId, myIntent,…
Hung Wei Chun
  • 145
  • 1
  • 1
  • 9
10
votes
5 answers

detect default alarm clock application alarms

I would like to know if there is a way (probably a system broadcast) to know that the alarm clock default application is now start ringing. if not - I'll be satisfied also if I could get progrematically list of all active alarms been set by the…
Tal Kanel
  • 10,475
  • 10
  • 60
  • 98
10
votes
1 answer

How to set timer to call a function every n minutes?

I want to set up a timer in an Android application that will call a function after every 15/30/45 and n minutes when user login. But also it will stop timer when user log off. and timer begin from start if user login again. I want that…
Shweta
  • 1,145
  • 5
  • 18
  • 35
9
votes
3 answers

How to start a dialog (like alarm dimiss /snooze) that can be clicked without unlocking the screen

I dont want to permanently bypass keyguard, just for that moment .For example when a alarm is raised (eg wake up alarm) i can dismiss /snooze it whithout unlocking screen .I want to achive the same behaviour.I want start a dialog which should be on…
user93796
  • 18,749
  • 31
  • 94
  • 150
9
votes
2 answers

Bind Service to BroadcastReceiver

I have some Service class, which registers multiple alarms. In my BroadcastReceiver class, I want the onReceive() method to call some method of the Service class. However, I don't see how I can bind them together. I tried to make the…
Mugen
  • 8,301
  • 10
  • 62
  • 140
9
votes
2 answers

Android alarms cancelled when application is killed

I have an Android application that has a service that runs in the background, communicates with a remote server and displays notifications to users if needed. The app also has an activity for users to interact with. One of the requirements is that…
Alex Gdalevich
  • 685
  • 7
  • 15
8
votes
4 answers

How to poll a webservice at finite interval from android?

i am developing an android app to show notifications.How can i poll a webservice at finite interval (say 10 min interval) to check for any update and show as notification in android notification panel.
8
votes
3 answers

setFullScreenIntent not working when screen is locked in android 10

I am trying to set a fullScreentIntent using NotificationCompat in android 10 when the alarm goes on but the fullScreenIntent is not showing even when the alarm goes on. I added USE_FULL_SCREEN_INTENT in manifest file. I tried acquiring partial wake…
8
votes
1 answer

How to implement robust alarm clock applications for Android 26+

I maintain an Alarm Clock application as a hobby which I have recently started to migrate to the target API level 26. Because of the background service limitation my app does not work reliably anymore. Current implementation works like this: User…
8
votes
2 answers

Android P Beta - AlarmManager Notifications not working

I'm testing my application on Android P beta release 4. My app's targetSdkVersion is 27 It has been observed that alarm manager notifications are not working as expected. I'm using below code to set the notifications - if…
8
votes
2 answers

AlarmManager not working properly

I'm trying to create an alarm based application. I'm using AlarmManager. The thing is that it's not reliable at all. In some devices it works.. in other devices it works somethimes.. and in other devices it doesn't work at all. When I say that it…
JFValdes
  • 426
  • 8
  • 19
1 2
3
78 79