1

私はこれを次のような画像で動作させました:

Intent intent = new Intent(Intent.ACTION_PICK, null);
                intent.setType("image/*");
                image = new File(projectPathFull,"testapp_"+imageCounter+".jpg");
                intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(image));
                startActivityForResult(intent, REQUEST_PICK_IMAGE);

これにより、選択した画像がフォルダー testapp に作成されますが、Audiofiles では何とか機能しません。これは私のコードです:

Intent toAudioSelect = new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI);
                audio = new File(projectPathFull,"testapp_"+imageCounter+".mp3");
                toAudioSelect.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(audio));
                startActivityForResult(toAudioSelect, REQUEST_PICK_AUDIO);

何か案は?

4

0 に答える 0