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

Multiple Repeating Alarm using Alarm Manager

I'm working on a small project, which is a pill reminder app. in my Setting Preference i have code like this SettingsPreference.kt ..... override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { …
1
vote
0 answers

Alarm Manager start before given time after device reboot

I am working on task in which I want to set Ringer Mode to vibrate for X time and bring back ringer mode to normal after X time. Alarm Manager works fine but after reboot it doesn't start alarm on time its start before time and also the alarm to…
1
vote
0 answers

Issue: for Making an Alarm app now a days. So, the summery is, is there any way for now a days, that I can make an actual and workable Alarm App?

Alarm Manager now is about to deprecated, because of Google's OS implementation, Api Update, Background Service Restriction (As some Information Here ), Device Doze Mode, etc, and Mobile Manufacturing Companies wants to prevent app behavior which is…
Noor Hossain
  • 1,620
  • 1
  • 18
  • 25
1
vote
2 answers

dynamic alarm manager at midnight

my mean goal is to run a task periodically at midnight (00:00:00) but the user can set the period based on the interval (daily, weekly , monthly) let's assume that this job is a backup Scheduling. this task will triggred at midnight but based on the…
MoxGeek
  • 458
  • 6
  • 17
1
vote
1 answer

Alarm Manager not running? Android

Any ideas why my alarm manager will not run? I have been fiddling around for hours and one of them is running but the other isn't and I can't find a solution. Calendar cur_cal = new…
Coder101
  • 17
  • 2
1
vote
1 answer

Android - AlarmManager fires every 5 seconds instead of 3 minutes

I have searched a lot of places but couldn't find a solution. I'm new to Android/Java programming and I'm trying to make an app that saves a counter in SQLite database from SharedPreferences daily (exact time) and reset it to 0 (like a step…
1
vote
0 answers

How to set repeating alarm for 30 days until android latest os versions(29)should be compatible?

I need to set alarm for the user to remind them to take a medication. the alarm triggering on sometime and not. Once application get rebooted, On Boot receiver, I'm reseting alarm once again. Even though it's not triggering. AlarmManager…
androider
  • 105
  • 1
  • 9
1
vote
1 answer

Alarm Triggered Immediately when I set AlarmManager what Im doing wrong in below code

Alaram Manager Class Im using alaramManager.setRepeating for repeating every time after some Interval public class AlarmService { Long time; AlarmManager alarmManager; PendingIntent pendingIntent; Context context; public AlarmService(Context…
Solanki Zeel
  • 548
  • 1
  • 7
  • 18
1
vote
0 answers

IntentService scheduled by AlarmManager sometimes die

I have an app that every minute launches an IntentService that gets the UsageStats and UsageEvents on this period. I used setExact() method of AlarmManager to set the moment that the IntentService is executed and on the onCreate method of the…
1
vote
0 answers

How do I make Android AlarmManager send repeating alarm reliably?

I have written a cross-platform application using Xamarin Forms in Visual Studio 2017 for members of a social group, which provides reminders of coming events and a means to reply to invitations to attend them. Everything works in the Android…
David S
  • 31
  • 5
1
vote
0 answers

local Notification with an Alarm Schedulling in Xamarin.Android doesn't work well

Am trying to make an Alarm notify on a scheduled time from my Sqlite, but the Alarm notifies only when i launch the Application, why is this Below is how am Implementing my Alarm class: public class AlarmImplementation { public…
1
vote
0 answers

Alarm Activity gets launched on launching the app

Scenario : I have a simple to-do app where In the main activity I have a fragment that takes a list of to-dos from the user. I set an alarm for a fixed time in the future (in my case every 2 min ONLY for testing. The AlarmReceiver class launches an…
1
vote
1 answer

Unable to Cancel the Alarm through broadcast Receiver

I'm trying to cancel the repeating notifications on a particular date, so I'm setting it in a broadcast receiver which is fired on that particular time cancelling the repeating notifications through that unique id. but it is not cancelling the…
1
vote
1 answer

Android repeating daily alarm not repeating correctly

I have an alarm that I am wanting to repeat around every day. Intent intent=new Intent(this, AlarmService.class); AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE); PendingIntent…
1
vote
2 answers

Android skip alarm

my question is how can I skip an alarm in Android. I have created an alarm with a one-day interval. But the user can press a button to do the automatical work which is done after the interval, by himself. So on the same day the automatical work…
Micha93
  • 628
  • 1
  • 9
  • 22