I'd like to specify a destination folder when I call the MediaStore
built-in sound recorder app, e.g. the sdcard folder. According to the Android documentation, there is no support for EXTRA_OUTPUT
when calling the RECORD_SOUND_ACTION
.
How can I do this?
You will have to allow the file to be recorded using whatever default filename and location are used and then move the file. Moving the file is far from trivial. Here's a complete example.
NOTE:
com.google.common.io.Files.copy()
is from Guava's file copy; feel free to use an alternate implementation or write your own Java file copier.