Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
jairsinho
Posts: 3
Registered: ‎06-14-2010
My Carrier: Iusacell

Add Alarm Event to Calendar

[ Edited ]

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.

 

 alarm1.png

 

Please use plain text.
New Contributor
jairsinho
Posts: 3
Registered: ‎06-14-2010
My Carrier: Iusacell

Re: Add Alarm Event to Calendar

[ Edited ]

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

Please use plain text.
Regular Contributor
omar123456789
Posts: 93
Registered: ‎11-07-2010

Re: Add Alarm Event to Calendar

also i am seraching for the same.

 

have you got any solution up tp now?

 

Please use plain text.
New Developer
aartijain212006
Posts: 6
Registered: ‎08-13-2010

Re: Add Alarm Event to Calendar

Any Solution to this............. I am searching for the same.

 

Thanks & Regards

Aarti Jain

Please use plain text.
Developer
gyubok
Posts: 448
Registered: ‎10-08-2009
My Carrier: Telus

Re: Add Alarm Event to Calendar

+1 here :smileysad:

Please use plain text.
New Contributor
DavidST
Posts: 3
Registered: ‎05-28-2012
My Carrier: Telcel

Re: Add Alarm Event to Calendar

+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:smileyvery-happy:D:0x067d0714.
[720.742] SyncDec:smileyfrustrated:trImagepng (0,0)10x72->(0,0)10x72
[720.742] SyncDec:smileyvery-happy:one
[720.843] GS(createSurface): Temporarily promoting window size
[721.046] VM:FSOMv=1
[721.046] VM:smileytongue:ISVt=0,h=61f6,id=d15a33128dfbb5d9
[721.046] VM:ACGRt=0,c=0
[721.046] VM:GRRTr=17eaf000,t=net.rim.device.apps.internal.clock.alarm.AlarmModelImpl
[721.046] VM:smileytongue: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:smileytongue:ISVt=0,h=61f6,id=d15a33128dfbb5d9
[721.062] VM:ACGRt=0,c=0
[721.062] VM:GRRTr=99d9000,t=net.rim.device.apps.internal.clock.alarm.AlarmModelImpl
[721.062] VM:smileytongue: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?

Please use plain text.