This is how I save an audio file:
try (FileOutputStream out = new FileOutputStream(getFilesDir() + "/output.mp3&