Troubleshooting guide
11
Using PIM applications
Using the calendar
Start the calendar from your application
Using the calendar
Using the address book
Using tasks
Task Steps
Open the calendar. >Invoke Invoke.invokeApplication(APP_TYPE_CALENDAR, CalendarArguments).
View or change an event. 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();
2. Invoke Invoke.invokeApplication(APP_TYPE_CALENDAR, CalendarArguments)
using the
CalendarArguments object created using the ARG_VIEW_DEFAULT property and
the retrieved
Event.
Invoke.invokeApplication( Invoke.APP_TYPE_CALENDAR, new
CalendarArguments( CalendarArguments.ARG_VIEW_DEFAULT, e ) );
Manage exceptions >Check for a ControlledAccessException if your application invokes a BlackBerry®
application that you do not have permission to use or access.