02-04-2009 05:21 AM
I have developed a java application which runs fine (simulator and device) and uses a FileConnection to write information to //storage (not //sdcard). The application is compiled with JDE 4.2.1. Tests on a 9000 bold device where also successful until I attached the device to a pc (usb) and selected "mass storage mode" - after that the FileConnection fails. Now my questions to check that I understood everything right:
- FileConnections can´t be used at all if the device is in mass-storage mode
- Mass-storage mode can´t be detected from my application. Workaround is described in: http://supportforums.blackberry.com/rim/board/mess
If thats correct, I would be happy if anybody could explain me why FileConnections must fail if in mass-storage mode. Just because i am curious about it ;-)
02-04-2009 05:31 AM
My understanding of this is that memory can only be mounted one place at a time, so it's either part of the PC space or it's not, in which case you can connect to it.
Another thing to realize is that the disk paths you are using are not guaranteed those names, so make sure you use System.getProperty to get the path to the different virtual disks.