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


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

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


MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture

MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2)

$295.00



Altair WBS-202 Dual channel wireless intercom base station picture

Altair WBS-202 Dual channel wireless intercom base station

$1350.00



MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector picture

MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector

$199.00



New MSA Altair Pro O2 Gas Detector (Part Number 10074137c) - Open Box picture

New MSA Altair Pro O2 Gas Detector (Part Number 10074137c) - Open Box

$269.99



🔅MSA altair 4X multi gas Meter Monitor detector, (O2,H2S,CO,LEL) & Charger picture

🔅MSA altair 4X multi gas Meter Monitor detector, (O2,H2S,CO,LEL) & Charger

$399.99



Commercial Convection Steamer Altair picture

Commercial Convection Steamer Altair

$2050.00







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