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

Android - start AlarmManager after reboot

AlarmManeger doesn't start after reboot but it should. How can I do it? AndroidManifest:
user1468102
  • 391
  • 5
  • 16
1
vote
1 answer

Unable to cancel repeating alarm Android

I have read every question there is about Android, AlarmManager and cancelling. I currently use an Activity starting a receiver through: long msInterval = 1; Intent intent = new Intent(this,…
Pphoenix
  • 1,423
  • 1
  • 15
  • 37
1
vote
3 answers

local notification not repeating

I need to show notification for completing registration to user in every 2 hrs , I have set it to few mins for testing , but my notification comes only once it never come again . Please suggest. My code for repeating task : public void…
Nibha Jain
  • 7,742
  • 11
  • 47
  • 71
1
vote
2 answers

Inquiry related to AlarmManager and WakeLocks

I am developing a native android app that run a backup operation every 30 mins. I am using AlarmManager for this purpose and it works fine. Here is the code I am using to start the alarm: public static void startSync(Context context) { …
1
vote
1 answer

Android repeat alarm manager in not triggering immediately

My code: Calendar calSet = Calendar.getInstance(); calSet.set(Calendar.HOUR_OF_DAY, 11); calSet.set(Calendar.MINUTE, 20); calSet.set(Calendar.SECOND, 0); calSet.set(Calendar.MILLISECOND, 0); PendingIntent…
Ravindra
  • 289
  • 1
  • 4
  • 10
1
vote
1 answer

Multiple alarm crash

I am currently developing a reminder app and i have so far set up 2 alarms: One that goes off every day (AlarmX) and if it is the correct date, sets up another alarm(Alarm) which wakes the screen. This code made sense in my head, but it doesn't…
Pavle Pavlov
  • 189
  • 2
  • 13
1
vote
1 answer

Send Update to Repeating BroadcastReceiver

I have something like the following for initiating an IntentService via repeated calls to a BroadcastReceiver to poll for server updates: AlarmManager pollManager; Intent pollIntent; PendingIntent pollPendingIntent; ... pollIntent = new…
1
vote
0 answers

set alarm notification between two specific date with particular day in android

Hello friends i want to set notification with two specific dates like date1= 2014/10/30 date2=2015/10/30 and alarm should be notify at every 5th day(means date=5) of every month until date2. how can i achieve this any idea Thanks in advances?
Harshal Kalavadiya
  • 2,412
  • 4
  • 38
  • 71
1
vote
2 answers

How to cancel alarm manager alarms when user removes the app from recent apps list?

As per a comment in this question : "Standard Android only allows you to remove things from that list on Android 3.0+, and doing so does not affect your AlarmManager events". I would like to cancel the alarms if the user swipes the app from list of…
Anubha
  • 1,345
  • 6
  • 23
  • 35
1
vote
0 answers

AlarmManager with ELAPSED_REALTIME_WAKEUP not updating PendingIntent

This works without any problems: Intent mIntent = new Intent(getClass().getPackage().getName() + ".ALARM_TRIGGER"); PendingIntent pi = PendingIntent.getBroadcast( BackgroundService.getInstance(), mAlarmID, …
gregor
  • 609
  • 1
  • 7
  • 15
1
vote
1 answer

Notifications coming immediately after App being destroyed

I have set up a notification which will be shown 4 hours after the App being destroyed. But as I am destroying the App, the notification is coming immediately and also after 4 hours. Here's my Main Activity's onDestroy(): @Override public void…
1
vote
1 answer

Daily Repeating Alarm not working

I'm trying to set a daily repeating Alarm using Alarmmanager and BroadcastReciever, but alarm is not getting fired properly. I'm using below code to set the alarm when App is installed first time : checkFirstTime =…
1
vote
1 answer

Alarm Manager not getting called with Google Nexus 4

I have developed one Android app. I need to set Alarms for certain operations. The problem is that the Alarm receiver works fine with all other devices but with Google Nexus 4 it sometimes getting called sometime not! :-( When I set alarm it prints…
MCA Shah
  • 405
  • 1
  • 4
  • 10
1
vote
1 answer

Re-enabling the Android Alarm

I am having one alarm that can be created by the user and can be disabled by the user. When user disables the alarm, I simply cancel the alarm using AlarmManager and store the alarm time somewhere. Now, when the user re-enable the alarm, I create…
MCA Shah
  • 405
  • 1
  • 4
  • 10
1
vote
0 answers

Android set repeating alarm using Joda Time

I am trying to set Android Alarm 2nd Monday and Wednesday of every month using JodaTime. I have been searching the internet for hours but I couldn't find what to put for the interval in alarmMgr.setRepeating() when I use JodaTime. Here is my code…
Gantavya
  • 181
  • 2
  • 2
  • 12