I am downloading files from the internet and saving the streaming data to a temp file in my app\'s internal storage given by getFilesDir().
Once the download is comp
An alternative to the copying using your own function is to use Apache's library's class "FileUtils" , in the function called copyFile :
FileUtils.copyFile(src, dst, true);