Android - Audio recorder FileNotFound
Posted
by david
on Stack Overflow
See other posts from Stack Overflow
or by david
Published on 2010-03-15T14:54:16Z
Indexed on
2010/03/15
18:59 UTC
Read the original article
Hit count: 321
Hi, I'm trying to record audio
this.recorder = new android.media.MediaRecorder(); this.recorder.setAudioSource(android.media.MediaRecorder.AudioSource.MIC); this.recorder.setOutputFormat(android.media.MediaRecorder.OutputFormat.DEFAULT); this.recorder.setAudioEncoder(android.media.MediaRecorder.AudioEncoder.DEFAULT); this.recorder.setOutputFile("pruebaAudioRecorder.mp4"); this.recorder.prepare(); this.recorder.start();
but when i call prepare method throws the FileNotFound exception.
- Should I create the file before prepare method? something like new File(...)
- If so, which should be the file path?
thx a lot.
© Stack Overflow or respective owner