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

not able to set alarm for more than 20 seconds

I had created alarm manager which invoke after 2 minutes which I want. But currently, i'm not able to set it more than 20 seconds. if I set for 20 seconds it returns output but if I set it for more than 20 I'm not able to set. I want to set it for 2…
1
vote
1 answer

Why setInexactRepeating in alarm manager trigger inappropriately

This is strange, what is the reason method setInexactRepeating trigger approximately at given time rather then exact time. I need to trigger alarm on every day basis at one particular time, i have said Calendar calendar =…
chethan
  • 426
  • 5
  • 15
1
vote
0 answers

Android OS shuts down the Wakelock + AlarmManager after a few minutes

Description I am developing an app (for testing purposes), that every 60 seconds will save a word in a database (using SQLiteOpenHelper). I am trying to achieve that by using AlarmManager (setRepeating) + Wake Lock (PARTIAL_WAKE_LOCK). It is…
Daniel
  • 2,002
  • 5
  • 20
  • 32
1
vote
2 answers

App AlarmManager not working after clearing App Data

I wish to show a status bar notification at 12 pm everyday and hence, I'm creating an AlarmManager which fires an IntentService which will show some notification. I've added Boot completed receiver and the AlarmManager is registered when the app…
Adithya Upadhya
  • 2,239
  • 20
  • 28
1
vote
1 answer

PutExtras with repeating alarmmanager

I want to schedule a repeating alarm at user define time. For that i am using following code AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); Intent intent = new Intent(this, AlarmReceiver.class); …
H Raval
  • 1,903
  • 17
  • 39
1
vote
0 answers

How to cancel a repeating notification on a particular date

Well I have tried enough to look for the answer to the question mentioned above, but my efforts have been futile so far. I have created an alarm with the help of the alarmmanager class which will fire up the notification at regular intervals of…
1
vote
3 answers

A broadcast receiver inside a service isnt working

I have a receiver inside a service as i need the scheduled alarm to work even when the activity is destroyed. This is what i have done. /** * Created by rishabh on 14/2/16. */ public class MyService extends Service { @Nullable @Override public…
1
vote
1 answer

How to use ProgressDialog in BroadcastReceiver

I'm having a serious problem when showing a ProgressDialog in a extend activity in BroadcastReceiver. actually I want to get data in php file within every 5 second. I used AlarmManager to define time and used AsyncTask to get hosted php data. this…
Kavindu
  • 11
  • 3
1
vote
1 answer

Alarm is not repeating

Here is my code for triggering alarm public void startAlarmp(){ int hour=10; int minute=30; Intent alarmIntent2 = new Intent(getApplicationContext(), AlarmReceiver.class); pendingIntentp =…
1
vote
0 answers

Issue with AlarmManager Set Repeating Alarms multiple times a day

In the android application that I am developing, I have to create repeating alarms with interval as daily for four timings. 8am, 1pm, 5pm and 9pm PendingIntent pi = PendingIntent.getBroadcast( context, 0, intent,…
Sumi
  • 11
  • 1
1
vote
1 answer

Repeating notification

I'm trying to set a notification that is repeated each day at a fixed hour. I'm able to set a notification by clicking on an item in a list (but that's not really interesting...) I've tried several things but I still can't make it appear…
1
vote
0 answers

My Alarm I set up on my app didn't work on an actual device, the sound also didn't play on emulator

I set up an alarm in my app to ring at 6:00pm everyday and I ran it on my emulator, it worked, but not in real-time, and also the sound I set did not play. So I wanted to see how it really works on an actual phone. I downloaded it to an actual…
1
vote
2 answers

Starting a Service From the Alarm Manager (no empty constructor)

I have implemented an Alarm Manager in my WebviewActivity that is supposed to call a Service after every 15 minutes in the Dashboard Fragment. When I try run the application I get the following Logcat error. Logcat 09-15 04:34:35.250 …
Tungamirai
  • 81
  • 11
1
vote
1 answer

My AlarmDemo keeps crashing with unclear reasons in my logcat

I am learning how to use the AlarmManager to set up notifications but when I run this, the app crashes, not sure why. Could anyone take a look at it and see what's wrong, please? This is my MainActivity.java file import java.util.Calendar; import…
droidnoob
  • 333
  • 5
  • 17
1
vote
1 answer

Setting up an Alarm system on android

Im developing an app with a feature by which people can set reminders for themselves for various events (like take medicine with dosage amount). The user should be able to 1) Set a time for the reminder 2) Set a date for the reminder and choose…
Varun Agarwal
  • 1,587
  • 14
  • 29