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

Schedule a task not working for sending text message, in particular time interval repeatedly

I need to schedule a task(send a text message) using Alarm Manager, and I need to send it repeatedly in a 1 minute interval. I would really appreciate any help regarding the same. Thanks in advance. Here is the code that I have…
JNL
  • 4,683
  • 18
  • 29
0
votes
0 answers

I need alarm to start after specified time interval but alarm is executing at the start and repeats after certain interval

I have attached my code here for reference. I need alarm to be executed after certain interval but its starting at the beginning and repeating. Can i get a solution for this. AlarmManagerExample.java package…
0
votes
0 answers

Android Alarm manager is not repeating

My Code: (Alarm interval 24 hours) Calendar calSet = Calendar.getInstance(); calSet.add(Calendar.DATE,-1); calSet.set(Calendar.HOUR_OF_DAY, 10); calSet.set(Calendar.MINUTE, 20); calSet.set(Calendar.SECOND, 0); calSet.set(Calendar.MILLISECOND,…
Ravindra
  • 289
  • 1
  • 4
  • 10
0
votes
1 answer

android alarms: Can alarm receiver cancel alarm after X repeats /

My android app allows the user to select an item and set an alarm on it. I'm trying to implement this with a repeating alarm, but I don't want the alarm to repeat forever. I want it to automatically be cancelled after 2 repeats. For example, the…
Marlonez
  • 45
  • 1
  • 5
0
votes
1 answer

Android: Alarms and IntentServices

After lots of research on implementing IntentServices and Alarms together, I've come up with this. I don't know exactly what happens with this code so I need help in knowing exactly what is going on. public class MainActivity{ //.... …
Bob Bob
  • 154
  • 1
  • 11
0
votes
1 answer

Alarm Repeats in Wrong Intervals Android

I am making an alarm application in android,which will trigger alarm daily at 8:00 pm.I am using this code to trigger the alarm Calendar c = Calendar.getInstance(); c.set(Calendar.HOUR_OF_DAY, 20); c.set(Calendar.MINUTE, 0); …
0
votes
1 answer

Alarm between a specific interval of time

I am new in android. I am working on an android alarm app.I want to show an alarm between 8am to 8pm after each 30 minutes and repeat this alarm daily. My code is here. Main Activity.... import java.util.Calendar; import android.app.Activity; …
0
votes
1 answer

AlarmManager not running the Service

I have to schedule invoking of an already install test project on the device after 10 sec once the button is click. For that I have created an AlarmReceiver and my TaskService which actually is invoking the test project. After running the app,…
0
votes
1 answer

Canceling alarm when activity is destroyed

I have a service running in my Android app. This service was started using an AlarmManager with a repeating alarm. When a certain event occurs, the service sends out a broadcast, which is received within a Fragment. There the alarm is canceled…
deimos1988
  • 5,896
  • 7
  • 41
  • 57
0
votes
0 answers

Weekly Scheduler not getting triggered?

I am trying to invoke a scheduler every Tuesday at 11 AM but somehow below code is not working. Using Calendar object, I'm getting the next date to be scheduled & then setting it up in scheduler. Can someone point me what error exists in below…
0
votes
1 answer

How to set time for repeating alarm for every 15 mints in android?

I have created two back ground services in my application. I have to start my back ground service with in some intervals. So I am using alarm for this. One service have to start for every 15 minutes and another one for once per day. My code is…
malavika
  • 1,331
  • 4
  • 21
  • 54
0
votes
1 answer

alarm manager to trigger at different time intervals

Can a single alarm manager trigger at 2 different time intervals like first interval should be 1 minute and second interval should be something like 2 minutes I was trying with following code but it is not working as i have expected :( { …
someone
  • 427
  • 2
  • 11
0
votes
1 answer

Android Repeating Alarm not cancelling

I don't know what is the problem,I saw many solution here I've already done it,but didn't help. Here is my code. I'm passing cancel id from intent while creating, and passing back, to cancel it. I've debugged it and passed and received id is same.…
Big.Child
  • 2,948
  • 4
  • 19
  • 26
0
votes
1 answer

Alarm manager triggers before time

i am trying to implement scheduling in my app which runs daily on set time.scheduler runs fine for the next coming hours but if i am setting it for time elapsed and set it to start scheduler runs instantly.Here is the code I have even added the code…
Supreet
  • 2,451
  • 8
  • 25
  • 42
0
votes
1 answer

AlarmManager Unable to start service Intent

Can anyone tell what silly mistake am I making for the following code and getting the error. I have tried similar stackoverflow posts and samples. error : 06-24 09:06:36.074: W/ActivityManager(61): Unable to start service Intent { flg=0x4…