O'Reilly logo

Java™ ME Game Programming, Second Edition by Ph.D. Martin J. Wells, Ph.D. John P. Flynt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Persistence

When you develop a MIDlet, you often use persistent data. Persistent data is data that you retain between executions of a MIDlet, such as scores, personal information that is displayed when you access a given MIDlet, or phone data. The means by which you can store and retrieve such data is the Record Management System (RMS). The record management system is a set of components designed to provide services that resemble those of a database engine.

The RMS stores data as records. A record is an array of bytes, and is identified using an integer value that is automatically assigned to the record as you add it to the persistent data store. You then assign this to the data store. It is analogous to the index of an array, but its values ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required