【发布时间】:2015-09-09 23:11:00
【问题描述】:
我正在使用我的 Android 应用程序中的内置录音机。有没有办法可以更改录制文件的默认位置?它们存储在 SD 卡的“声音”文件夹中。我想将它们存储在不同的文件夹中。如果可能的话,我该怎么做?
下面是调用内置Android录音机App的简单代码。
Button startRecording = (Button) findViewById(R.id.startBtn);
startRecording.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
Intent recordIntent = new Intent(
MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(recordIntent, REQUEST_CODE_RECORD);
}
});
【问题讨论】: