Chapter 19. Be Persistent: MIDP Data Storage

So, now we've got some data we'd like to store persistently on our J2ME device—the images for the car's weapons. By storing these directly on the device, we don't have to download them every time the MIDlet fires up. Fine, but how do you do it across so many diverse devices, most of which are without hard drives or even file systems?

As with most things in the J2ME scheme of things, data storage is in the mix, but it's rather different than you might be used to, and requires a little limited-device common-sense to use effectively and efficiently.

To take advantage of J2ME's data access capabilities, we'll need to make use of ...

Get Micro Java™ Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.