How can I specify the output file's folder when calling RECORD_SOUND_ACTION?
问题 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? 回答1: 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. import java.io.File; import java.io.IOException