setOutputFile() expects a path to where you want the file stored.

You can take a look at the source to SoundRecorder in the open source
tree for some working code:

http://android.git.kernel.org/?p=platform/packages/apps/SoundRecorder.git;a=summary

On Feb 24, 4:43 pm, benmccann <benjamin.j.mcc...@gmail.com> wrote:
> Hi,
> I'd like to create an audio recording in Android.  (Actually, I just
> want access to the mic without recording it, but it seems that's not
> supported so I'll have to create a recording and tail the file).
> I'm having a very hard time getting started.  Mostly I'm just hoping
> that someone from Google reads this and will update the documentation
> because the example won't compile - it looks like it's from some
> previous version of the SDK because there's an error in every other
> line.  I made my best guess as to what the usage should be, but I keep
> getting a number of different exceptions.
> One question I had is whether I can just specify an arbitrary path to
> the MediaRecorder to start recording or whether I have to create an
> entry in the content database.  The JavaDoc for
> MediaRecorder.setOutputFile isn't clear on what it's expecting.
>
> Thanks,
> Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to