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


OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$12.11



Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL picture

Dell OEM Latitude Rugged Extreme 5414 Driving Board Cable for Cable 5414VERTCBL

$8.95



Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M picture

Dell OEM Latitude Rugged Extreme 7404 GPS Antenna Junction Cable Cable KMX0M

$2.95



Dell OEM Latitude Rugged Extreme 7404 Left and Right Mouse Buttons 00008 picture

Dell OEM Latitude Rugged Extreme 7404 Left and Right Mouse Buttons 00008

$5.95



NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98







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