1.11M Members

Files Handling in Android

 
0
 

I am developing an Application in which i have to move files from-to two directories.
i know how to read/write in a file but i m not getting the proper way of moving-deleting-copying files from one directory to another.

here is file delete code.

File sdRoot = new File( "/sdcard/" );
sdRoot.delete();


i hope people understand my question and i could get help in this regard.

 
0
 

Are there any errors from delete action (I presume you have try/catch clause and catch is actually doing something)?
Did you closed any open streams?

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: