There is a bug in the MediaRecorder and you can only record once per
MediaRecorder object. You will need to call release() and then
allocate a new MediaRecorder object.

This will be fixed in a future release.

On Mar 9, 12:40 am, aby <[email protected]> wrote:
> Hi,
> There are always runtime exceptions about reset() method when I tried
> to finish a audio record operation and start to record new one. The
> procedure in my code as follows:
>
> MediaRecorder mRecorder = new MediaRecorder();
>
> //....begin to record....
> mRecorder.prepare();
> mRecorder.start();
>
> //....end to record....
> mRecorder.stop();
> mRecorder.reset();
>
> //.....begin to record a new one...
> mRecorder.prepare();
> mRecorder.start();
> .......
>
> And exception happen at mRecorder.reset().
> Is there any problems in reset() of MediaRecorder?
> Or I only can new a MediaRecorder object and release it when I need to
> record a new one audio?
>
> Regards
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to