Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Průvodce řešením problémů Strana 163

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 286
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 162
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.
Zobrazit stránku 162
1 2 ... 158 159 160 161 162 163 164 165 166 167 168 ... 285 286

Komentáře k této Příručce

Žádné komentáře