Error Uncaught out off memory when I use persisten object to save data on Blackberry?
I use Persisten Object to save data but when I run my application on Simulator, have 开发者_如何学Goan error dialog
Uncaught out off memory
and run on real device, it take very long time to load and run. What did I do wrong? Please help me
The BlackBerry® Persistent Store APIs are designed to provide a flexible and robust data storage interface. With the BlackBerry Persistent Store APIs, you can save entire Java® objects to memory without having to serialize the data first. When you start the application, you can retrieve the Java object from memory and process the information. No size limit exists on a persistent store; however, the limit for an individual object within the store is 64 KB.
The BlackBerry Persistent Store APIs do not provide a relational database model. You must create an effective object model and manage the relationships between objects, as necessary, using indices and hash tables.
sample example of storing persistent data
best practice for persistent storage
精彩评论