06-15-2010 03:32 PM - edited 06-15-2010 03:34 PM
Hi,
I'm new to BB development and would like to know how to add an Alarm Event to Calendar (in the same way you do it via Calendar Menu -> New Alarm). I've been searching across the forum with no luck and also playing around with the Event and BlackBerryEvent classes and all I can do is create a "normal" Event.
I also tried to get all the events from the calendar and I can't get the Alarms, only the Appointments, as if the Alarms were not calendar events, using this code:
try {
EventList eventList = (EventList)PIM.getInstance().openPIMList(PIM.EVENT _LIST, PIM.READ_ONLY);
Enumeration events = eventList.items();
while (events.hasMoreElements()) {
Event event = (Event)events.nextElement();
Dialog.alert(event.toString());
}
} catch (PIMException e) {
Dialog.alert(e.getMessage());
}Is there any way to add a Alarm entries to the calendar?
Thank you in advanced,
Jairsinho.
06-16-2010 09:57 PM - edited 06-16-2010 10:01 PM
Hi,
I've been searching about this, and since haven't found even a clue, I think it's seems to be some kind of exclusive feature of the OS that is not included in the API. Can someone confirm this?
Thank you,
jairsinho
12-26-2010 03:40 AM
also i am seraching for the same.
have you got any solution up tp now?
01-05-2011 09:23 AM
Any Solution to this............. I am searching for the same.
Thanks & Regards
Aarti Jain
02-09-2011 05:33 PM
+1 here ![]()
06-07-2012 04:48 PM
+1 here!
A clue: I was debugging my app when i add a new Alarm direct form the calendar and the output in the console was:
[720.734] VBW:0x0a7fa800
D:0x067d0714.
[720.742] SyncDec
trImagepng (0,0)10x72->(0,0)10x72
[720.742] SyncDec
one
[720.843] GS(createSurface): Temporarily promoting window size
[721.046] VM:FSOMv=1
[721.046] VM
ISVt=0,h=61f6,id=d15a33128dfbb5d9
[721.046] VM:ACGRt=0,c=0
[721.046] VM:GRRTr=17eaf000,t=net.rim.device.apps.internal.c
[721.046] VM
ISVt=0,h=61f6,id=d15a33128dfbb5d9
[721.054] VM:LNTDa=commit,t=1,p=net_rim_bb_calendar_app,h=65
[721.062] VM:FSOMv=1
[721.062] VM
ISVt=0,h=61f6,id=d15a33128dfbb5d9
[721.062] VM:ACGRt=0,c=0
[721.062] VM:GRRTr=99d9000,t=net.rim.device.apps.internal.cl
[721.062] VM
ISVt=0,h=61f6,id=d15a33128dfbb5d9
[721.062] VM:LNTDa=commit,t=0,p=net_rim_bb_calendar_app,h=65
[721.078] net.rim.clock: CZZZ,474312872,
[721.078] net.rim.clock: SAVE,Test1 - 474312872
[721.226] GS(createSurface): Temporarily promoting window size
[721.242] GS(createSurface): Temporarily promoting window size
[721.617] AM: App net_rim_bb_timeddialogwakeupapp is trying to schedule for time: 1339106760000
[721.632] AM: Scheduled net_rim_bb_timeddialogwakeupapp for 1339106760000
[721.718] AM: App net_rim_bb_timeddialogwakeupapp is trying to schedule for time: 1339106760000
[721.726] AM: Scheduled net_rim_bb_timeddialogwakeupapp for 1339106760000
[721.804] AM: App net_rim_bb_timeddialogwakeupapp is trying to schedule for time: 1339106760000
[721.804] AM: Scheduled net_rim_bb_timeddialogwakeupapp for 1339106760000
[721.812] AM: App net_rim_bb_timeddialogwakeupapp is trying to schedule for time: 1339106760000
[721.812] AM: Scheduled net_rim_bb_timeddialogwakeupapp for 1339106760000
[722.312] GS(createSurface): Temporarily promoting window size
So i think the Alarm is an app generated by rim, but there should be an interface from caledar and this app...
Any hint?