1. Download our Official Android App: Forums for Android!

Need help with Audio Recording

Discussion in 'Music & Media' started by Sakdroid, Dec 8, 2010.

  1. Sakdroid

    Sakdroid Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    2
    Joined:
    Dec 8, 2010

    Dec 8, 2010
    2
    0
    25
    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
     

    Advertisement

  2. sudheerm

    sudheerm Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Feb 23, 2011

    Feb 23, 2011
    1
    0
    5
    Any updates regarding this, please post. I am looking for a similar solution and have struggled enough.
     

Share This Page

Loading...