Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel
Accepted Solution

File System Error.

Hello All,

 

 

 

I want to create new directory (i.e. myapplicationname) on SD card of Blackberry when my application starts.

 

What I doing -

 

 

 

FileConnection file = (FileConnection) Connector.open

 

"file:///SDCard/BlackBerry/pictures/myapplicationname", Connector.READ_WRITE);

 

 

if (!file.exists()){

     file.mkdir();

System.out.println("Directory created");

}else  {

System.out.println("Directory already created");

}

 

I am getting the FileIOException -

net.rim.device.api.io.file.FileIOException: File system error

with error code as 1002.

 

Please help me to figure out the problem.

 

Thanks,

Bhavesh 

 

Regular Contributor
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: File System Error.

Hello All,

 

No one has any idea on this ?

 

Regards,

Bhavesh

Trusted Contributor
Posts: 200
Registered: ‎02-22-2010
My Device: BlackBerry 9550
My Carrier: Airtel

Re: File System Error.

http://supportforums.blackberry.com/t5/Java-Development/Create-a-folder-in-file-system/m-p/19640

 

 

this link might help u?

 

 

 

 

 

 

give kudos if u find solution.

Swapnil G.