Chapter 6

Storing and Searching Data

You now know enough about the BlackBerry user interface to create some pretty impressive-looking applications. So far, however, we’ve mostly focused on the basics of application life cycle and user interface. The applications that we’ve created haven’t saved any data to any form of persistent storage; each time they’re run, it’s as if they’re running for the first time.

In the real world, most applications need to persist data. Even the simplest of applications typically has a user option or two that need to be stored when the application is shut down or the device is reset.

A number of different mechanisms exist on the BlackBerry for persisting data. Some applications use more than one method depending ...

Get Beginning Blackberry 7 Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.