BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-27-2009, 04:25 AM   #1
Heider
New Member
 
Join Date: Apr 2009
Location: Wimbledon
Model: 9000
OS: All
PIN: N/A
Carrier: O2 - UK
Posts: 2
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
Heider
New Member
 
Join Date: Apr 2009
Location: Wimbledon
Model: 9000
OS: All
PIN: N/A
Carrier: O2 - UK
Posts: 2
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
praveen_goparaju
New Member
 
Join Date: Jun 2009
Model: 9000
PIN: N/A
Carrier: Ecllipse
Posts: 3
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Chroma 6312 DC Electronic Load Mainframe  picture

Chroma 6312 DC Electronic Load Mainframe

$239.96



National Instruments NI PXI-1044 Chassis 14-Slot PXI Mainframe 189105E-01 Rev 01 picture

National Instruments NI PXI-1044 Chassis 14-Slot PXI Mainframe 189105E-01 Rev 01

$199.99



Tektronix TM502 Dual Bay Mainframe for the TM500 System - Clean, Powers (SR55) picture

Tektronix TM502 Dual Bay Mainframe for the TM500 System - Clean, Powers (SR55)

$154.99



Fluke Networks Versiv Modular Mainframe AS IS picture

Fluke Networks Versiv Modular Mainframe AS IS

$900.00



SHC SYSTEM 6 MAINFRAME + Mixed Modules 6-562,6-201,6-402. picture

SHC SYSTEM 6 MAINFRAME + Mixed Modules 6-562,6-201,6-402.

$50.39



^^ HEWLETT PACKARD 66000A MPS MAINFRAME (MB1) picture

^^ HEWLETT PACKARD 66000A MPS MAINFRAME (MB1)

$300.00







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