Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 22
Registered: ‎01-16-2009
My Device: Not Specified

FileConnection and mass-storage mode

Dear all,


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/message?board.id=java_dev&message.id=15257&query.id=21...

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 ;-)

Thanks!
Steve

Developer
Posts: 558
Registered: ‎11-25-2008
My Device: Not Specified

Re: FileConnection and mass-storage mode

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.

 

-D

Developer
Posts: 22
Registered: ‎01-16-2009
My Device: Not Specified

Re: FileConnection and mass-storage mode

thanks, thats what i thought!
Developer
Posts: 558
Registered: ‎11-25-2008
My Device: Not Specified

Re: FileConnection and mass-storage mode

You are very welcome.

-Donald