Questions tagged [alarm]

Anything related to the design and implementation of alarms. An alarm is a form of man-machine interaction where the attention of the user of an application or a system is attracted using an audible, a visual or some other kind of signal (or a combination thereof) in order to make the user aware that some event has happened.

Anything related to the design and implementation of alarms. An alarm is a form of man-machine interaction where the attention of the user of an application or a system is attracted using an audible, a visual or some other kind of signal (or a combination thereof) in order to make the user aware that some event has happened.

1448 questions
10
votes
1 answer

Set notification at specific time android

I realize this question has been asked before, but I'm at my wit's end with this one. I have an alarm manager to set up a notification: public void to_reminder(View view) { Intent intent=new Intent(this,Notification_morning.class); …
sam
  • 420
  • 4
  • 13
10
votes
1 answer

Setting a new alarm in Apple's Clock App from another application

I have searched for references to this and have found a few teasers, but nothing comprehensive. I'm looking for a way to set up (and, perhaps delete, although not absolutely necessary) a new alarm in the actual IOS Alarm Clock application from a new…
Scott Hurd
  • 101
  • 1
  • 3
10
votes
2 answers

how to change system alarm setting text dynamic

Hi I'm creating a app to display the count of alarm that comes from services and i've to update that when my screen is lock. but i am getting a out put but it is not updating can any one help me this is a code i used for display the text in lock…
Jagan
  • 672
  • 1
  • 11
  • 35
9
votes
1 answer

Speaker Volume (Alarm) decreases when Headphones are plugged in

I'm trying to play an alarm sound through the speakers via the alarm channel at max volume. For that I'm using the AudioManager and a MediaPlayer. If I plug in headphones, the alarm is still played through the speakers, however the volume of the…
9
votes
2 answers

How to test daily alarms on Android?

One of my pet projects shows notifications on specific dates defined by user. I use AlarmManger.setRepeating(AlarmManager.RTC_WAKEUP, millis, AlarmManager.INTERVAL_DAY, pendingIntent) to schedule daily alarm which launches app to decide if it…
grapescan
  • 241
  • 1
  • 4
  • 9
9
votes
2 answers

Difference between 'setExact' and 'setAlarmClock'

In my application which was supposed to trigger an alarm at a specified time, alarm whose purpose was to inform the user via a Notification, I despaired at obtaining a non precise result. The alarm was ringing, but not at the specified time. This…
Zelig63
  • 1,422
  • 1
  • 20
  • 35
9
votes
3 answers

What is sigaddset used for?

I have this code where I use sigaddset and sigaction. However if I comment segaddset the result is the same struct sigaction act; act.sa_handler = process_alarm; act.sa_flags = 0; sigemptyset(&act.sa_mask); …
NeDark
  • 1,203
  • 4
  • 22
  • 33
9
votes
5 answers

How do I pass data from a BroadcastReceiver through to an Activity being started?

I've got an Android application which needs to be woken up sporadically throughout the day. To do this, I'm using the AlarmManager to set up a PendingIntent and have this trigger a BroadcastReceiver. This BroadcastReceiver then starts an Activity to…
Tom Hume
  • 399
  • 1
  • 4
  • 12
9
votes
2 answers

Android - Alarm lost after app update

I have an app running on Android that creates an alarm that is fired every 24 hours. This alarm is working as expected. However, when I update my app through Google Play this alarm is lost because the end user does not open the app right after the…
user3012738
  • 131
  • 3
9
votes
5 answers

C: SIGALRM - alarm to display message every second

So I'm trying to call an alarm to display a message "still working.." every second. I included signal.h. Outside of my main I have my function: (I never declare/define s for int s) void display_message(int s); //Function for alarm set up void…
vivav
  • 105
  • 1
  • 1
  • 5
9
votes
2 answers

Android. Alarm Manager fires in strange times

I used the following code to set repeating alarm (every 5 minutes). public void SetAlarm(Context context) { AlarmManager am=(AlarmManager)context.getSystemService(Context.ALARM_SERVICE); Intent i = new Intent(context, Alarm.class); …
Gari BN
  • 1,495
  • 1
  • 15
  • 28
8
votes
2 answers

How to signal alarm in python 2.4 after 0.5 seconds

I want to timeout a particular piece of python code after in runs for 0.5 seconds. So I intend to raise an exception/signal after 0.5 seconds, and handle it gracefully and continue with rest of code. In python i know that signal.alarm() can set…
8
votes
6 answers

How can I interact with the Lockscreen layout to display text into it, like this app:

I just discovered this application : https://market.android.com/details?id=de.j4velin.lockscreenCalendar It seem that is now possible to write some text inside the lockscreen in the place where the alarm is usually written. I would like to display…
Waza_Be
  • 39,545
  • 47
  • 176
  • 256
8
votes
3 answers

How to set Alarm using alarm clock class

Hi I am trying to set Alarm in my application Using the AlarmClock class. I am using the code as follows: Intent intent = new Intent(); intent.setAction(AlarmClock.ACTION_SET_ALARM); startActivity(intent); But I am getting an exception. Can…
user519846
  • 919
  • 6
  • 15
  • 26
8
votes
3 answers

How to check if alarm is set

I'm trying to check if my alarm is active or not. The alarmIsSet method will return false before the alarm is set, true when the alarm is set. So far so good, however, after the alarm i canceled alarmIsSet will continue to return true until I reboot…
Holm
  • 972
  • 2
  • 12
  • 20
1 2
3
96 97