将文件从SD卡复制到SD卡的所需文件夹

时间:2012-12-05 06:31:21

标签: android audio-recording

我是Android新手。我想将我的文件从SD卡的一个位置复制到我的特定文件夹。使用默认语音录制它默认存储在SD卡中,但我想从那里复制并将这些文件存储在我的欲望文件夹“sdcard> myfolder1> myfolder2”

这是我的代码:

btn_recordAudio.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            // TODO Auto-generated method stub

            Intent intent = new Intent(
                    MediaStore.Audio.Media.RECORD_SOUND_ACTION);
            startActivityForResult(intent, RQS_RECORDING);

        }

    });
}

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    super.onActivityResult(requestCode, resultCode, data);

    if (requestCode == RQS_RECORDING) {

        savedUri = data.getData();

        Toast.makeText(AudioRnp.this, "Saved: " + savedUri.getPath(),
                Toast.LENGTH_LONG).show();
    }

0 个答案:

没有答案