BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-10-2011, 04:51 AM   #1
aviyach
New Member
 
Join Date: Mar 2011
Model: 9550
PIN: N/A
Carrier: vodafone
Posts: 4
Default FILE CONNECTION -controlled access exception

Please Login to Remove!

I am running this code in simulator and it is throwing controlled access exception

FileConnection fc = null;
boolean _created = false;

try
{
fc=(FileConnection)Connector.open("file:///SDCard/testFolder/test.txt",Connector.READ_WRITE);
fc.create();
}catch(Exception e)
{}

any help is welcomed


A Y
Offline  
Old 10-10-2011, 08:06 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: FILE CONNECTION -controlled access exception

You need to set the application permissions to allow file access.
Offline  
Old 10-13-2011, 05:19 AM   #3
aviyach
New Member
 
Join Date: Mar 2011
Model: 9550
PIN: N/A
Carrier: vodafone
Posts: 4
Default Re: FILE CONNECTION -controlled access exception

Thank you very much, that issue is solved!
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

Similar Threads for: FILE CONNECTION -controlled access exception
Thread Thread Starter Forum Replies Last Post
Local Database Connection Error ogaal BES Admin Corner 10 11-25-2009 02:05 AM
Built HelloWorld App; No Errors; But Can't get it to run in Simulator doni49 Developer Forum 14 10-06-2009 10:19 PM
File Manager Pro v1.5 Released TerraMobility Aftermarket Software 2 09-12-2009 07:19 PM
how to access logic of the jad file download page? kosh Developer Forum 1 09-04-2009 05:10 PM
Security event ID 565 Danny_Larouche BES Admin Corner 3 03-22-2007 11:17 AM


6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS picture

6500/1 A 6502 VARIENT CPU COMMODORE USE IN AMIGA KB & 1520 PLOTTER NMOS NCR NOS

$5.89



New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598 picture

New Greaseweazle V4.1 USB Floppy Adapter Flux Reader Writer Amiga PC Case 1598

$36.49



[1pcs] 8520A-1 CSG 8520A-1  Commodore Amiga DIP40 USED picture

[1pcs] 8520A-1 CSG 8520A-1 Commodore Amiga DIP40 USED

$15.57



[1pcs] 8520A-1 MOS 8520A-1  Commodore Amiga DIP40 USED picture

[1pcs] 8520A-1 MOS 8520A-1 Commodore Amiga DIP40 USED

$15.07



MITSUBISHI FR-PU04 (67735), Parameter Unit: A500/E500, 10-KEY Keypad + Manual... picture

MITSUBISHI FR-PU04 (67735), Parameter Unit: A500/E500, 10-KEY Keypad + Manual...

$209.46



MITSUBISHI FR-PU04 (67735), Parameter Unit: A500/E500, 10-KEY Keypad | ID2707... picture

MITSUBISHI FR-PU04 (67735), Parameter Unit: A500/E500, 10-KEY Keypad | ID2707...

$189.17







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