Looking at adb logcat I'm getting this error:
*Record channel already open*
Could this be a bug? I don't understand how it could already be open..
nothing else is recording on the device?
2009/1/31 ph...@grantmidwinter.com ph...@grantmidwinter.com
I've got a media recorder, prepared and
Are you running on a G1 or on the emulator? If on the emulator, maybe
audio input isn't working correctly and it's failing to open the audio
input device.
On Jan 31, 9:59 am, Phill Midwinter ph...@grantmidwinter.com wrote:
Looking at adb logcat I'm getting this error:
*Record channel already
I was running on a G1.
I've just found the problem though. On previous debug sessions - the
mediarecorder hadn't been properly released.
Solution was to reboot the phone, add overrides to onpause and ondestroy,
making sure it's released in each case and then run again. Works like a
charm!
are you testing it on the emulator or on the G1 device?
I'm not sure about it but I've read around some forums that you need a
virtual sd card to record audio on the emulator. (with the
mksdcard.exe in the tools provided with the sdk)
Some other sources also say it isn't possible to record audio
You shouldn't have to reboot the device. The release() call just
forces the release of the hardware resources instead of waiting for
the garbage collector to come along.
You should always call release() in your onPause() if you are using a
singleton hardware resource like a media player, media
5 matches
Mail list logo