Sun Microsystems J2ME manual WMADemo, Saving an item

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 110
Image 110

FIGURE 56 Saving an item

You can return to the list by choosing the Back command. You'll see the item you just created in the list.

The items that you create are stored in standard vCard or vCalendar format in the {toolkit}\appdb\{skin}\pim directory. See Chapter 10 for more information.

The PIM API allows for exporting contact, calender, and to-do items in a standard format. The exact format depends on the list type. When you are viewing an item in any list, the menu contains a command for viewing the exported item.

For example, when you are viewing a contact list item, the menu contains Show vCard. When you choose this command, the exported item is shown on the screen. Calendar items and to-do items both get exported as vCalendar.

A.9 WMADemo

This application shows how to send and receive SMS, CBS, and MMS messages. The J2ME Wireless Toolkit offers a flexible emulation environment to support messaging. Messages can be exchanged between emulator instances and can be generated or received using the WMA console utility.

Because this example makes use of the push registry, you can't see all of its features just by using the Run button. You need to use the Run via OTA feature to install the application into the emulator in a process that mirrors how applications are installed on real devices. If you don’t know how to do this, read about it in Chapter 2, “Developing MIDlet Suites.”

98 J2ME Wireless Toolkit User’s Guide • October 2004

Page 110
Image 110
Sun Microsystems J2ME manual WMADemo, Saving an item