07-24-2008 07:30 AM
i m developing application in which i have to rename file from media card so i use FileConnection API.
but it gives me exception that File System Error and same code works fine for device memory files.
I m confused abt this one ...Is there any setting for Media card access..???.
fconn = (FileConnection)Connector.open(file:///SDCard/Blac
System.out.println("" + fconn.canRead() + fconn.canWrite());
fconn.canRead() retruns me true
fconn.canWrite() returns me true.
help me out guys....
Thanks in advance....
Device Simulator- 8100
Solved! Go to Solution.
07-24-2008 10:28 AM
Which exception is your application throwing and which line of your code is throwing the exception? It details the causes of the different exceptions in the FileConnection javadocs. Some of the things that may cause this:
07-24-2008 10:32 AM
fconn.rename("1.jpg") throwing exception as IOexception File System Error
and also i m unable to delete file which is on sdcard folder (created in my app)
show me the way..........
how to check if file system is locked or not....Any APIs are there??
thnks in advance....
07-24-2008 03:39 PM
07-25-2008 04:02 AM
thnks for reply
but question remains same ...
Since i m moving file from device memory to Sd card code works fine...
But in opposite case Sd card to Device memory i create file on device memory and tries to delete file on SD card it gives meexception asIOException: File System Error though i used different file connection objects and also closing them properly....
Is thr any way to see if file is locked or not...???
I m bit confused about it since all code works fine on device memory but fails on SD card (rename,delete)...
Thnks in advance....