I have a method that will copy an Audio file from raw folder to SD card
. It takes two inputs
Please don't hardcode paths. Use Environment.getExternalStorageDirectory() to get the path of a large storage medium. Some phones mount sdcards in /mnt/sdcard or somewhere else, some just don't have one and rely on inbuilt flash.
This might throw the error, but I don't think is the error in this case since you are probably testing with your phone/emulator, where this path applies.