I have written an application for BlackBerry devices that stores some files in the internal storage. I use this line to get a connection to the storage
Connector.open("file:///store/BlackBerry/myDir/", Connector.READ_WRITE);
The first time my applications tries to access this storage I check to see if the proper directories exist and if not I create them with .mkdir();
This process works perfectly for me on two devices (a Bold and a Torch) I am now trying to run this application on a Curve and it is failing to create the directories for me. It gives me this error:
“net.rin.device.api.io.file.File.IOException: File system error(12)”
Do any devices use something besides “store/” in the path to their internal storage? Or is there anything else that could be different about the Curve devices internal storage that would cause this exception from that line on this device but not on the others?
You should use FileSystemRegistry.listRoots() to find out what root file systems are avaialable. The Bold 9000 and Torch 9800 both have interal flash storage but IIRC the Curve does not. See also this link from RIM.