• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1600
  • Last Modified:

DatabaseIOException : File System not ready error Blackberry 9700

Hi All,

Below is the code i am using for blackberry Rim database connection.

URI uri = URI.create("/store/home/user/" + "sampledatabase");

Database sqliteDB = DatabaseFactory.open(uri);

This code works fine on all blackberry touch devices but it throws the following error on the 9700.

"net.rim.device.api.database.DatabaseIOException: File system not ready".

Any solution?

Many Thanks
Rajalakshmi



0
Anupama_2005
Asked:
Anupama_2005
1 Solution
 
mattclarifiedCommented:
Hi,

The URI string should start with "file:///store/..." rather than just "/store/...". This may be why its not working

M@
0
 
Anupama_2005Author Commented:
Hi,

Thanks. I found solution.  

Different BlackBerry devices support different places to store data depending on the BlackBerry device model.

a) Application storage: file:///system

This storage location is internal to the BlackBerry device. It contains the operating system, the BlackBerry Java Virtual Machine, and an internal file system. Application storage is also called flash memory and on-board memory. Application storage is the only place on a BlackBerry device from which applications can be run. All BlackBerry devices have application storage.

b) Built-in media storage: file:///store

This storage location is an embedded multimedia card called eMMC. It is not removable. A FAT file system is mounted on the built-in media card. Built-in media storage is also called internal media memory and on-board device memory. Built-in media storage is included on some BlackBerry device models.


c) External media card storage: file:///SDCard

This storage location is a microSD card that BlackBerry device users can insert to extend the amount of storage on their devices. It is optional and removable. A FAT file system is mounted on the media card. MicroSD cards are supported on all devices running BlackBerry Device Software 4.2 or later, with the exception of the BlackBerry 8700 Series.

If creating single app to support all device models then programmatically use the above three options to store database.

Thanks & Regards
Rajalakshmi
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now