954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Files Handling in Android

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.

Ghouri
Newbie Poster
2 posts since Oct 2008
Reputation Points: 10
Solved Threads: 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?

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: