12-02-2010 06:45 AM
Our team is developing an application which uses SQLite database.
We store the database to SDCard. But the performance of the app got down.
So we switch to Device Memory. The app is working using device memory on 9530, 9550 Storm devices.
Coming to Bold 9700, 9650 the app is able to create the Database schema on the device memory location, but when am trying to open the database, it is throwing an error with message
"File System not ready. File System Error"
But according to the documentation in 5.0 API <http://www.blackberry.com/developers/docs/5.0.0ap
*"Note: A SD card is the preferred storage for databases, currently Storm and Bold are the devices that can create databases with internal memory. "
I also googled for sample apps which are working with SQLite database stored in device memory of Bold, but I didn't find any one.
When I go for *SDCard*, the database is creating and able to access, works in all Storm, Bold devices.
But, I go for *Device Memory* the problem starts !!
It works fine on Strom 9530, 9550 devices, but throws an error on Bold 9700, 9650 devices.
I request you to suggest me what is the reason for this issue and a fix for this?
Many Thanks !!
01-25-2011 03:26 PM
Database db = DatabaseFactory.create(FileURL);
I receive the message "File system not ready" at the line above on a Bold 9700 simulator and device.
Is there actually a bug filed with RIM about this so I can tell my Product Manager that I'm not crazy.
01-25-2011 05:29 PM
Can you tell us the URL you have used?
The issue here I think is the definition of 'device memory'. Some devices have what is effectively a built-in SDCard, that is located at store (rather than SDCard). You can use this for SQLite databases.
I thknk this Thread explains the setup better than I could:
05-28-2011 11:29 AM
I have gone through the link you have suggested here. But for the above mentioned "DatabaseIOException- File system not ready " i am not able to find any solution. Is it something like the BlackBerry OS, doesn't supports creating SQLite database ( DatabaseFactory.openOrCreate(uri, new DatabaseSecurityOptions(false)) on "file:///store/home/user/"?