This line:
final FileOutputStream outputStream = new FileOutputStream(name);
results in a FileNotFoundException with the messa
FileNotFoundException
Adding
in manifest and using same as Martin:
path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES); File file = new File(path, "/" + fname);
It worked.