12-02-2008 12:10 PM - edited 12-02-2008 12:11 PM
hi all ,
i read through the blackberry development guide "Using PIM applications" -"Using the calendar"
and ran through the samples ,
when i create an appointment and save it , it got reflected in my BB calendar , but here i want to have another copy of calendar named "Abc Calendar" when i save it , it shld get reflected there where i should not disturb the original calendar
any ideas , any helps would be greatly appreciated
12-02-2008 12:32 PM
From the device context there is only one calendar instance.
If you wish to create an additional calendar - implement the calendar functionality in your application and link your application (when necessary) to the device calendar.
12-02-2008 01:00 PM - edited 12-02-2008 01:01 PM
If you check javadoc for javax.microedition.pim.PIM class that is factory for calendar instance you can see that there is one way to get calendar via PIM.getInstance().openPIMList(type, mode)
There is only one suitable type: PIM.EVENT_LIST
and it refers to the device calendar
there is no way to specify another calendar instance into this method.
12-02-2008 01:21 PM
It is possible to have multiple calendars on the device (BIS calendar for example).
If you knew the name of the calendar you wanted to get, it does look possible to add events to it.
You can use String listPIMLists(int pimListType) in PIM to get the names of the PIM lists of type EVENT_LIST and see what is available.
12-02-2008 01:25 PM - edited 12-02-2008 01:27 PM
12-02-2008 01:46 PM