How can I save persistent data within a J2ME MIDlet program?

Bill Day

The J2ME Mobile Information Device Profile (MIDP) specifies a simple, record-oriented database model to save persistent data from your applications (called "MIDlets") in a J2ME MIDP device. In brief, this model maps your MIDlet method calls (which look like operations on a simple database) into calls to read, write, or otherwise manipulate data in whatever underlying storage method is available on the real device (flash, file system, database, or otherwise).

Information on the use of MIDP persistence is available from the MIDP specification, linked to from the MIDP homepage:

I also provide some information on the use of the MIDP record-oriented db model in my J2ME presentation at: