Sun Java Solaris Communities My SDN Account Join SDN
 

Mobile Service Architecture - JSR 75


JSR 75 - PDA Optional Packages

 

JSR 75 specifies two packages for the Java ME platform, both of which are mandatory. The PIM package enables developers to access PIM data, such as the calendar, address book, and to-do lists, that is resident on most mobile devices. The File Connection package enables developers to access various forms of data, such as images, sounds, videos, and more, on mobile device file systems. This includes removable storage devices, such as memory cards, that may be supported. Access to both PIM and file data enables applications to ne tightly integrated with information on the device, allowing for more intelligent applications with easy-to-use interfaces.

Packages

 

javax.microedition.io.file
javax.microedition.pim

System Properties

 
Name Description
microedition.io.file.
FileConnection.version
The supported version "1.0" or null if not supported.

file.separator The string representing the file separator character(s) for the underlying platform.

filecon.dir.photos The URL of the default storage directory for photos captured with the integrated camera and other images.

filecon.dir.videos The URL of the default storage directory for the video clips captured with the integrated camera or for downloaded and saved video clips.

filecon.dir.graphics The URL of the default storage directory for clip art graphics (caller group icons, background pictures, and similar items).

filecon.dir.tones The URL of the default storage directory for ring tones and related audio files.

filecon.dir.music The URL of the default storage directory for music files (MP3, AAC, and others).

filecon.dir.recordings The URL of the default storage directory for voice recordings made with the device.

filecon.dir.private The URL of the MIDlet suite's storage directory.

filecon.dir.photos.name Localized name of the directory corresponding to the system property filecon.dir.photos.

filecon.dir.videos.name Localized name of the directory corresponding to the system property filecon.dir.videos.

filecon.dir.graphics.name Localized name of the directory corresponding to the system property filecon.dir.graphics.

filecon.dir.tones.name Localized name of the directory corresponding to the system property filecon.dir.tones.

filecon.dir.music.name Localized name of the directory corresponding to the system property filecon.dir.music.

filecon.dir.recordings.name Localized name of the directory corresponding to the system property filecon.dir.recordings.

filecon.dir.private.name Localized name of the directory corresponding to the system property filecon.dir.private.

filecon.dir.roots.name Localized names corresponding to roots returned by FileSystemRegistry.listRoots() method. Names are separated by a semi-colon (;) character.

microedition.pim.version The supported version "1.0" or null if not supported.
 

Articles

 

An Overview of the File Connection Optional Package - Describes how the basic scaffolding for file I/O is supported.

Getting Started with the FileConnection APIs - This tutorial provides a code-intensive introduction to the FileConnection APIs. This optional package enables J2ME-based applications to create, read, and write files and directories located on mobile devices and external memory cards.

An Overview of the PIM Optional Package - Describes the J2ME interfaces for personal information management data.

Getting Started With the PIM APIs - This article provides a code-intensive introductory tutorial to Personal information management (PIM) APIs, JSR 75. PIM refers to the ability to manage in electronic form the kinds of personal data that broad classes of users want handy, such as appointment books, contact directories, and to-do lists. Having this information literally at your fingertips, wherever you go, is a strong motive to buy a mobile device.

An Introduction to the PIM API for Java ME - The SDN Mobile Java site is presenting a six part series on the Personal Information Management API (JSR 75). Java ME expert and JCP member Enrique Ortiz provides the definitive text on the PIM API. Jump on Part 1 now and be prepared for the rest of the series in the coming weeks.

Using the PIM API for Java ME, Part 2 - Portability Considerations - In this installment Enrique explores how to test for PIM API presence on your device and test for presence of the various databases and fields. Learn how to navigate the API and build robust applications.

Using the PIM API for Java ME, Part 3 - Security Considerations - Will your application protect the user's address book, calendar and to-do list? In part 3 learn how PIM is designed to work in conjunction with the MIDP 2.0 security framework.

Design Consideration for Using the PIM API for Java ME - Welcome to Part 4 of the PIM API series. Now it's time to explore design issues that will affect how your application is developed. Read this, then start your application design.

Managing Personal Information - Using the PIM API for Java ME - In the penultimate article in the PIM API series Enrique presents sample source. Small examples of how to do everything from retrieving the names of PIM databases through PIM create/read/update/delete operations to exception handling. Now it's time to play.

Managing Personal Information - Summary of PIM Fields - In the final installment, Enrique Ortiz provides an extensive reference on the PIM fields and pointers to related on-line resources. Now you have it all.

Getting Started
 
Related Links
 

Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.