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


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

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

Forum Jump


NETWORK INSTRUMENT GIGASTOR- 2U (2X) XEON E5-2630- 64 GB PC3 RAM picture

NETWORK INSTRUMENT GIGASTOR- 2U (2X) XEON E5-2630- 64 GB PC3 RAM

$356.99



TYAN S5387-EFI EATX DUAL XEON LGA 771 SERVER MOTHERBOARD 2GBE 500P GFX SATA RAID picture

TYAN S5387-EFI EATX DUAL XEON LGA 771 SERVER MOTHERBOARD 2GBE 500P GFX SATA RAID

$150.00



Trenton 92-506313-XXX W/ 2x Intel Xeon Processors & 4GB DDR2 RAM picture

Trenton 92-506313-XXX W/ 2x Intel Xeon Processors & 4GB DDR2 RAM

$285.99



POSEIDON XEON D-1500 PRODRIVE TECH BOX picture

POSEIDON XEON D-1500 PRODRIVE TECH BOX

$500.00



Super-Micro P4DC6+ Motherboard with 2 Xeon i processors with SCSI RAID picture

Super-Micro P4DC6+ Motherboard with 2 Xeon i processors with SCSI RAID

$200.00



Intel Xeon E5-2690 2.90GHz Eight Core Processor picture

Intel Xeon E5-2690 2.90GHz Eight Core Processor

$60.00







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