BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-27-2009, 04:25 AM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Location: Wimbledon
Model: 9000
OS: All
PIN: N/A
Carrier: O2 - UK
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Smile File system error when trying to save a file into an SDCard

Please Login to Remove!

Hi All

I thought I needed to add this (as a fix) to a problem that I was having lately.

I developed a small application to create some files on the SDCard. The application works fine on the Emulator (creates directories, files etc). However, when migrated to the real physical Blackberry 9000 device, I noticed a problem where Directories created ok, however, writing or even opening any files on the SDCard where giving an exception of

"File system error"

(example; writing to a file "file:///SDCard/BlackBerry/xyz/test.txt").

I searched the forums and the net all over the place, nothing was found

I even checked all application permissions, etc, and even added more code to my application to allow more permissions.

At the end, I figured it out!... it was a very silly problem

Aparently the SDCard was locked and inaccessable when connecting your BB device to the PC via USB. Once you plug in the USB cable into your BB device, you would be prompted for a password to allow the PC to access your BB drives, once you key in your BB's password, the PC then would "lock" all your drives on the blackberry causing the same "File System Error" with all applications that requires the SDCard to write to.

To make your application work, simply, unplug your USB cable and re-run your application !

I hope this helps.

Kind Regards
Heider
__________________
__________________________

Heider Sati
A Senior Techie!
Newhex Technologies

Last edited by Heider : 04-27-2009 at 04:26 AM.
Offline  
Old 04-27-2009, 04:28 AM   #2 (permalink)
New Member
 
Join Date: Apr 2009
Location: Wimbledon
Model: 9000
OS: All
PIN: N/A
Carrier: O2 - UK
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also, this was found in the trace to highlight a permission issue on the tracing before hitting the line FILE_OPEN code-line:

Exit net_rim_bb_application_permissions_proxy(208)
Detected background switch for net_rim_bb_application_permissions_proxy(208) who has NO tunnels open - defocus NOT called

Regards
Heider
__________________
__________________________

Heider Sati
A Senior Techie!
Newhex Technologies
Offline  
Old 08-20-2009, 09:52 AM   #3 (permalink)
New Member
 
Join Date: Jun 2009
Model: 9000
PIN: N/A
Carrier: Ecllipse
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi, i need to add my files to the SDcard and need to access them from there how can i do these two things?? is there any samples on it? if not there please post the procedure to do this.
it might be helpful to many.

Last edited by praveen_goparaju : 08-20-2009 at 09:53 AM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.