Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums on April 1st. 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
08-21-2009 08:58 AM
I am trying to record a wav file and save it on sdcard of device. Im using Pearl with 4.5 OS.
Whenever I debug the application on real device, I am not able to read the file or even write file to sdcard...
How I can read and write files on sdcard?
Solved! Go to Solution.
08-21-2009 10:27 AM
It would be helpful if you posted the code you are currently using to try to read/write.
FileConnection fconn = (FileConnection)Connector.open("file:///SDCard/Bla
DataInputStream disRead = fconn.openDataInputStream();
int iData = disRead.read();
catch (IOException ioe)
// exception handling
For further information, look up the FileConnection, DataInputStream, and DataOutputStream classes in the API library.
If your issue is solved, set "Solution" mark at the relevant post.
Don't hesitate to Kudos people whose posts helped you.
08-21-2009 12:49 PM
It looks like you have the Mass Storage Mode on when you connect via USB.
So make sure that it is not the case:
go to the device options-->Media Card and set " Auto Enable Mass Storage Mode When Connected" to "No", or to Prompt.
If you set it to prompt, it will ask you when you connect the device, and you should answer NO.
Make sure that you the device is not connected to USB when you set it.