4
Using PIM applications
Using the calendar
Start the calendar from your BlackBerry Java Application
Using the calendar
Notify an application when the default list of events on a BlackBerry device changes
Using tasks
Code samples
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 E
vent.
Invoke.invokeApplication( Invoke.APP_TYPE_CALENDAR, new
CalendarArguments( CalendarArguments.ARG_VIEW_DEFAULT, e ) );
Manage exceptions
>
Check for a
ControlledAccessException
if your BlackBerry® Java® Application invokes a
BlackBerry application that you do not have permission to use or access.
Содержание JAVA DEVELOPMENT ENVIRONMENT - - DEVICE APPLICATIONS INTEGRATION - DEVELOPMENT GUIDE
Страница 1: ...BlackBerry Java Development Environment Version 4 6 0 BlackBerry Device Applications Integration Guide...
Страница 4: ......
Страница 7: ......
Страница 10: ...10 BlackBerry Device Applications Integration Guide...
Страница 12: ...12 BlackBerry Device Applications Integration Guide...
Страница 50: ...50 BlackBerry Device Applications Integration Guide...
Страница 56: ...56 BlackBerry Device Applications Integration Guide...
Страница 65: ......
Страница 66: ...2008 Research In Motion Limited Published in Canada...