alarm

NSTimer as Alarm

Is the best practice of setting an alarm on OS X to create a NSTimer scheduled for the number of seconds between the current time and the desired time for the alarm, or is there an alternative to that method? ...

How to set an alarm to fire properly at fixed time?

I have this code Calendar c = new GregorianCalendar(); c.add(Calendar.DAY_OF_YEAR, 1); c.set(Calendar.HOUR_OF_DAY, 23); c.set(Calendar.MINUTE, 22); c.set(Calendar.SECOND, 0); c.set(Calendar.MILLISECOND, 0); // We want the alarm to go off 30 seconds from now. long firstTime = Syste...

Java Swing how to create a task reminder

How to create a event reminder. Example, an user created an event which is today 5.00pm and stored it into database. When ruun the program the reminder will pop up if the system time is 5.00pm. Is there any API can do that? From google what I got was those freeware. ...

Using Alarmmanager to start a service at specific time

Hi friends, I have searched a lot of places but couldnt find a clean sequential explanation of how to start a service (or if thats not possible then an activity) at a specific time daily using the AlarmManager?? I want to register several such alarms and triggering them should result in a service to be started. I'll be having a small pi...

How to setup an alarm that would go off even if I restart my android phone?

Hi: I've been searching this site and found some answers related to setting an alarm. I've successfully been able to set up an alarm. What I do is: From an activity I set an alarm that at certain time and date will call a receiver From the receiver I call a service From the service I send a notification (on the notification bar) to...

how to handle alarmclock and alarm reciever broadcasting to pause playing mediaplayer object

I am using service class to play the mp3 file using media player object on Android platform, problem is, i am not able to handle the alarm interruption. When any previous set alarm clock reach to it's alarm time it starts to play in parallel with mp3.I want that mp3 should become paused and after alarm it again start to play,same thing s...

How to know when my Android app is terminating?

I need to cancel a repeating alarm when my app terminates. The problem is I have several activities and since they can be killed at any time, how can I determine when the last activity is being shutdown so I can call my alarm canceling method? ...

Editing an alarm !

I am setting an alarm for my reminder app: PendingIntent sender = PendingIntent.getBroadcast(AddToDoList.this, Integer.parseInt(DBHelperClass.getMaxPrimaryId()), intent, 0); i am using a unique value (primary ID) to set an alarm. When i want to edit the alarm i am using the same key. But what i see is that both the alarms g...

Android Preferences: Unlimited, extensible value-list

Hello, I would like to allow the user to enter (a non-predetermined amount of) values for an Android application preference. Existing examples that come to mind are the alarm clock applications found on various smartphones (iPhone, HTC Android, ...) where the user can add an alarm clock time.* Can anyone think of a simple way to presen...

How to implement an alarm with iPhone SDK 4.0

I have an idea for a pretty unusual alarm clock fir the iPhone. But as of now I have some thoughts on how to actually implement this. First off: forgetting about background services for now, how would I do the actual timer that fires the alarm etc? A separate thread? Or does the SDK include any nice alarm features I missed? Of cause I ne...

Most efficient way of implementing an alarm on iPhone

I have implemented a simple clock like so: - (void)runTimer { timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(showActivity) userInfo:nil ...

How to identify an EKAlarm in an EKEvent.

I'm developing an app that will require setting and removing alarms accordingly. I'm wondering if I set an alarm for an EKEvent, how can I identify it when I want to remove it? The only accessible properties of the EKAlarm are absoluteDate and relativeOffset. I feel like it would cause problems if the alarm I set has the same relativeOf...

How to cancel this repeating alarm?

Hi, I'm writing something like a reminder for users. Users will set reminders for their events, when the time comes, a repeating alarm will be set to trigger a status bar notification. But the alarm seems non-stop after I selected the notification or cleared the notification. I am not sure where to cancel this repeating alarm. Below are ...

Java MIDP app runs minimized when activated via PushRegistry alarm

I'm trying to get an application to restart correctly on a ZTE GR255 phone. There's some network activity as the app starts, and if it times out, the user gets the option to retry. I've implemented retrying by just killing the applicaion via PushRegistry.registerAlarm to start the app in 4 seconds, then killing the app with notifyDestro...

Is it possible to change/set the alarm clock from a different application on the iPhone

Is it possible to access information like the alarm clock time and change it from a different application on the iPhone. And if its possible to do it, can it be approved by the app store to sell it? ...

Android Alarm Manager with broadcast receiver registered in code rather than manifest

Hi, I want to use an alarm to run some code at a certain time. I have successfully implemented an alarm with the broadcast receiver registered in the manifest but the way i understand it, this method uses a separate class for the broadcast receiver. I can use this method to start another activity but I cant use it to run a method in m...

How to create core data for developing Alarm iphone application or any other solution instead of core data for data storing concept

Hi All, I am confusing about developing alarm iphone application of how to manage database for alarm list are displaying in UITableView control. It means that how to perform contineosly calling methods which contineosly fetching data from array or database for alarm ringing on the basis of time matching. Can any one solve this ...

android programming tutorial for an alarm needed

Hi. I am starting an app for android. I was wondering if anyone had any tutorials to get me going. something similar to an alarm that goes off on 2 different occasions on specific dates, these dates and times should be obtained from a csv file or something similar so that i can control when and at what time the alarm goes off. any help ...

Problem acquiring wake lock from broadcast receiver

Hi I have a problem. I am trying to make a broadcast receiver acquire a wake lock so my alarm will wake the phone from sleep mode. In the broadcast receiver below, the program crashes with "source not found" on line "sCpuWakeLock.acquire(); when the class "AlarmAlertWakeLock" is called by AlarmReceiver. Any idea what's going on? Is th...

Android - acquiring a hold lock from a broadcast receiver

Hi. I am trying to acquire a wake lock in a broadcast receiver so that my alarm clock application can wake the phone from sleep. It crashes at the following line in the code below: PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag"); Any ideas what's going on? Is there a better way to do this? Tha...