Questions tagged [alarms]

71 questions
37
votes
3 answers

How can I setup multiple alarms in Android?

So far and thanks to this website, I've been able to set up an alarm that will be set up and active, even if I turn of my phone. Now, I set up a alarm to show a reminder for event A and I need the application to setup another alarm to show another…
monn3t
  • 685
  • 1
  • 6
  • 22
29
votes
1 answer

Android AlarmManager after reboot

I have a set of alarms that I need to keep after reboot. I've tried using on an boot receiver but they won't start again. I'm not sure if I understand the boot receiver and how to then restart all the alarms. I already have one receiver for my…
user1281053
  • 377
  • 1
  • 5
  • 10
17
votes
3 answers

Multiple calls to AlarmManager.setRepeating deliver the same Intent/PendingIntent extra values, but I supplied different ones

Solved while writing this question, but posting in case it helps anyone: I'm setting multiple alarms like this, with different values of id: AlarmManager alarms = (AlarmManager)context.getSystemService( Context.ALARM_SERVICE); Intent i = new…
Chris Boyle
  • 11,168
  • 7
  • 46
  • 62
12
votes
2 answers

Scheduling alarm every 2 minutes android

In my activity class protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); AlarmManager alarmManager=(AlarmManager) getSystemService(ALARM_SERVICE); …
user3278732
  • 1,576
  • 9
  • 26
  • 60
10
votes
3 answers

Get all alarms saved in the alarm application

Is it by any chance possible to get a list of alarms saved in the alarm application of android ? I am making an application which just needs to show the alarms set in the Alarm application. Thanx
JaVadid
  • 6,937
  • 13
  • 40
  • 54
9
votes
2 answers

Cancelling a single alarm when you have multiple alarms

I have used the same pendingIntent to set multiple alarms using different intentId for each. the alarm is working. Now i want to cancel a particular alarm. If i use the cancel() method i would end up cancelling all the alarms. I want only a specific…
flamesavor
  • 129
  • 3
  • 8
9
votes
3 answers

How can I suspend all audible notifications on the iPad?

We're creating an audio application for iPad (only) which will be used for live performances. The device will be wired directly into the console. As such, the last thing you want during a live performance is to have the device suddenly chirp out an…
Mark A. Donohoe
  • 23,825
  • 17
  • 116
  • 235
8
votes
3 answers

Setting an alarm (as in alarm clock) using intents

Since API level 9 (2.3) you can set an alarm using an intent: Intent i = new Intent(AlarmClock.ACTION_SET_ALARM); i.putExtra(AlarmClock.EXTRA_HOUR, 9); i.putExtra(AlarmClock.EXTRA_MINUTES, 37); startActivity(i); Is there anyway of setting an alarm…
stealthcopter
  • 13,374
  • 11
  • 61
  • 80
5
votes
3 answers

Adding multiple reminders causes them to trigger at the same time

I include here the full problem description because I'm not exactly sure if the logic behind the solution is even correct, but I am pretty sure that it has to do with the way I'm setting the alarms themselves that's causing this inaccuracy, or just…
Odaym
  • 1,777
  • 1
  • 18
  • 31
5
votes
3 answers

How to set one time alarm in android

I am doing alarm Project, I want to set one time alarm.. But i am facing problem to set tat, My code is; public void loadCalender(String month) { try { Cursor cursor = null; Database db = new…
Joy Helina
  • 368
  • 5
  • 16
3
votes
1 answer

Can you target an event listener to a specific Chrome Alarm?

I'm trying to create a Chrome Extension that uses two different alarms, using the Chrome Alarms API. I want to create two specific listeners, each handled by a different alarm: chrome.alarms.onAlarm.addListener(function(timer) { …
3
votes
2 answers

Chrome extension API for alarms has method clear that is not working as per documentation

Chrome version is 33.0.1750.154 m. As per the documentation at http://developer.chrome.com/extensions/alarms#method-clear, the signature of clear method is: chrome.alarms.clear(string name, function callback). I have an alarm in my extension which…
3
votes
1 answer

Is it possible for a website to set an alarm on a user's iPhone?

I have limited HTML, CSS and Javascript experience. However, I am wondering if it is possible to code a simple website that can set an alarm on whatever device the user is accessing the website on by tapping/clicking a button. A real world example…
Uncle Slug
  • 773
  • 1
  • 11
  • 26
2
votes
1 answer

How to store and delete alarms for respective object

i have a little problem and i'll be very gratefull if you could help me. I have an app like a local database for client medicins, when adding an pill he has the posibility to add a reminder when he needs to take that specific pill. He can set only…
2
votes
0 answers

Multiple Alarms fired as one in an intent (List View)

Since no one answered my previous question about multiple alarm at the same time in android (Multiple alarms at the same time in Android), I came up with another solution. The problem is how to start this approach. Here's what I have in mind. My…
1
2 3 4 5