Using PIM applications
Using the calendar
Notify an application when the default list of events on a BlackBerry device changes
Using tasks
Code samples
Using the calendar
Start the calendar from your BlackBerry Java Application
Task
Open the calendar.
View or change an event.
Manage exceptions
Steps
Invoke.invokeApplication(APP_TYPE_CALENDAR, CalendarArguments).
>
Invoke
1. Retrieve an Event from the list of events.
Event e = null;
EventList el = (EventList)PIM.getInstance().openPIMList(
PIM.EVENT_LIST, PIM.READ_WRITE );
Enumeration events = el.items();
e = (Event)events.nextElement();
Invoke.invokeApplication(APP_TYPE_CALENDAR, CalendarArguments)
2. Invoke
CalendarArguments
using the
vent.
the retrieved E
Invoke.invokeApplication( Invoke.APP_TYPE_CALENDAR, new
CalendarArguments( CalendarArguments.ARG_VIEW_DEFAULT, e ) );
ControlledAccessException
>
Check for a
BlackBerry application that you do not have permission to use or access.
object created using the ARG_VIEW_DEFAULT property and
if your BlackBerry® Java® Application invokes a
4