Your code looks correct to me from what I recall of the API. Are you sure that the application has write access to the directory specified by mPath?
On Nov 8, 8:09 am, g1ster <[EMAIL PROTECTED]> wrote: > I had trouble get the MediaRecorder to work on g1 (actually with the > emulator as well). I have the following samle code: > > MediaRecorder mRecorder = new MediaRecorder(); > > mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); > > mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); > mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); > mRecorder.setOutputFile(mPath); > mRecorder.prepare(); > mRecorder.start(); > > It fails at the last line. Couldn't find much from the thrown > Exception - all it says was "start failed". > > Any ideas? > > Anyone with working MediaRecorder and/or MediaPlayer samples code? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

