• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Need help with Audio Recording

Sakdroid

Lurker
Dec 8, 2010
2
0
Hi

I am a newbie in Android and i was trying to build an app to record audio data. I am using Eclipse Galileo IDE with ADT plugin. And my app is targetted for the Andriod 2.1 platform.

Unfortunately the example
http://developer.android.com/guide/topics/media/index.html

provided in the Dev Guide throws many exceptions.
for eg: to get MIME type the code uses recorder.getMimeContentType().

But this method does not exist in my version of MediaRecorder class.
I have searched online as well as this forum and came up with one or two alternatives which show how to record audio and place it in an EXISTING file. But ideally i want the code given in the dev guide to work.

Or even better if i can record the audio and store it directly in a byte array???

I have spent a lot of time trying to get this to work but with not much success :(

I would really appreciate if someone can show me how to achieve audio recording

Thanks,
Saket
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones