08-22-2010 04:49 PM
I have only ever made an app once and that was 2 years ago. On the project we had used XML. But that was only because we did not know what we were doing where I was working.
So fast forward to today, I would like to know how best to store data locally for retrieval.
XML
JSON
or is there some kind of local database that would be a better solution?
08-22-2010 05:06 PM
Prior to OS 5.0 you could either store it as plain-text on the device internal or external memory or else you can store data as Java Objects in the PersistentStore (look up documentation and samples)
OS 5.0 or later also has SQLite at hand. (OS 5.0 SQLite DB Limit = 512kb, OS 6.0 SQLite DB Limit = 5MB)
I would recommend SQLite if working with OS 5.0 or higher and the PersistentStore for pre OS 5.0
WARNING: If you are using the Persistent Store on any OS version then a software upgrade or device wipe will result in total loss of data in the Persistent Store. You'd best use a form of backup to device internal or external memory but for easier overall experience the PersistentStore is better. (in my opinion)
08-22-2010 05:15 PM
Greatly appreciate this information ![]()
08-22-2010 05:43 PM
Hi black_berry
You can use RMS record store.
08-22-2010 11:55 PM
Since OS 5.0, There are many storage available here.
Like RMS, SQLite. u can use easily.
08-23-2010 07:22 AM
RMS is available before 5.0 OS and does not require signing.