Search code examples
androidfiledirectorycopymove

How to programmatically move, copy and delete files and directories on SD?


I want to programmatically move, copy and delete files and directories on SD card. I've done a Google search but couldn't find anything useful.


Solution

  • Use standard Java I/O. Use Environment.getExternalStorageDirectory() to get to the root of external storage (which, on some devices, is an SD card).