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.

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.