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

How to trigger the alarm multiple times on same day?

For example, first alarm to be triggered at 10:00 am, second alarm to be triggered at 11:15 am and Third to be at 11.45 am.... Like this without any common difference between each instance I need to trigger alarm multiple times. If I had common…
-1
votes
2 answers

AlarmManager start Alarm Instantly

I have created a form where user specify date and time and adds alarm. I take these date and time and creates Alarm using AlarmManager. The problem is that as soon as I click on CreateRemainder button, Alarm is fired I am using following method to…
dev90
  • 7,187
  • 15
  • 80
  • 153
-1
votes
1 answer

What is the best way to schedule task in android?

My project requirement is to schedule multiple tasks very frequently at exact time with delay between 0-5 seconds. What is the best way to schedule tasks for this purpose? Below are the options I considered: 1. Alarm Manager : Using Alarm Manager I…
gambit
  • 85
  • 2
  • 10
-1
votes
2 answers

How to trigger alarm after seven days in Android

I'm trying to trigger an alarm after seven days when the user launches the app. I have tried to set the alarm to trigger in following way: Intent i = new Intent(this, MuteBroadcastReciever.class); AlarmManager alarmManager = (AlarmManager)…
Roach
  • 610
  • 1
  • 8
  • 13
-1
votes
2 answers

How could this PendingIntent alarm cancelled?

I've managed to understand this code. This code is used in an reminder app. What this code do is to set and cancel alarm. However, i don't know how the newly created reference could cancel existing PendingIntent. Please explain me this code (the…
-1
votes
1 answer

How to schedule Alarm without AlarmManager API

i want to schedule an alarm without the AlarmManager API, because this doesn't work on my samsung device ( samsung smart manager cancel alarm), but i don't know how i can do this ?
Yass
  • 547
  • 1
  • 7
  • 14
-1
votes
1 answer

Android, Calling a method from intentService on a particular date and time

I have a IntentService, Suppose I launch it today 27/12/2015. I want it to wait for a specific date and time i.e 05/01/2016 08:54 AM, On this date and time i want it call a method to do something.
-1
votes
1 answer

How to setup daily Notification in Android?

I want to set daily Notification(Alarm) at 10 AM daily. What to edit in following code to set it at 10 AM ? Also how to make it run in background to raise the Alarm? Here is the java code of main activity: package com.rufflez.tenksteps; import…
-1
votes
2 answers

Which AudioFocus do I need to set for an alarm application

From this blog I learned that, for all media applications, I should request AudioFocus and start the playback only if the AudioFocus is…
Yarh
  • 4,459
  • 5
  • 45
  • 95
-1
votes
1 answer

Running Frequently task using AlarmManager

I want to run some task in background without telling user, to send some data to server. Requirement is, after every fifteen minutes I have to send some data. So need Alarm Triggered after every 15 Min. I am using AlarmManager but not achieving.…
Devendra Singh
  • 2,343
  • 4
  • 26
  • 47
-1
votes
2 answers

The method startActivityForResult(Intent, int) is undefined for the type ABC

i have a class ABC with implements Serializable ABC class is an alarm class so using bunch of functions, i just wanted to upload image from SD card, to that i need to view images in GRIDVIEW then user need to select the IMAGE, this is the process i…
-1
votes
1 answer

snooze functionality using spinner

I am developing snooze functionality for alarm app, i am using spinner for selecting snooze mins, by default it is selecting as first array int value, but alarm is not rising on snooze time. by default it should not select any value, user need to…
-1
votes
1 answer

snooze not working for alarm manager

snoozebtn.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent myIntent = new Intent(getApplicationContext(), AlarmAlertBroadcastReciever.class); …
Anwesh
  • 91
  • 1
  • 1
  • 12
-1
votes
1 answer

android alarm doesn't work if i press back button

I have implemented an Alarm manager and receiver in my application, all is working perfectly. The issue I am having is when I press the back button to close the application, the alarm doesn't run at the time specified. Below is the code I am…
Phil Andrews
  • 409
  • 3
  • 23
-1
votes
1 answer

AlarmManager not scheduling task at given time

I am trying to do some task at some specific time inserted by user. I have two classes. 1. AddTiminigs 2. TimeReceiver In OnCreate of "AddTimings, I m doing something like this: manager =…
Ali Ansari
  • 219
  • 3
  • 14