BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-10-2011, 05:51 AM   #1 (permalink)
New Member
 
Join Date: Mar 2011
Model: 9550
PIN: N/A
Carrier: vodafone
Posts: 4
Post Thanks: 1
Thanked 0 Times in 0 Posts
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, 09:06 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: FILE CONNECTION -controlled access exception

You need to set the application permissions to allow file access.
Offline  
The Following User Says Thank You to Dougsg38p For This Useful Post:
aviyach (10-13-2011)
Old 10-13-2011, 06:19 AM   #3 (permalink)
New Member
 
Join Date: Mar 2011
Model: 9550
PIN: N/A
Carrier: vodafone
Posts: 4
Post Thanks: 1
Thanked 0 Times in 0 Posts
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 11:19 PM
File Manager Pro v1.5 Released TerraMobility Aftermarket Software 2 09-12-2009 08:19 PM
how to access logic of the jad file download page? kosh Developer Forum 1 09-04-2009 06:10 PM
Security event ID 565 Danny_Larouche BES Admin Corner 3 03-22-2007 12:17 PM





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