Hi i need AudioRecord Api not MediaRecorder.

thanks

On Sat, Dec 31, 2011 at 3:12 PM, Teena sharma <sharma.teena...@gmail.com>wrote:

>
>
>
>
> rcd.setOnClickListener(new OnClickListener() {
>
>             @Override
>             public void onClick(View v) {
>
>
> recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
>
> recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
>
> recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
>     recorder.setOutputFile(Environment
>                             .getExternalStorageDirectory()
>                             + "/" + give name of the file to store+
> ".3gp");
>
>
> try {
>                     recorder.prepare();
>                     mPlayer.start();
>                     recorder.start();
>                 } catch (IllegalStateException e) {
>                     // TODO Auto-generated catch block
>                     e.printStackTrace();
>                 } catch (Exception e) {
>                     // TODO Auto-generated catch block
>                 }
>
>             }
>
>         });
>
> rcd is a  button   to start recording.
>
>
>
>
>
>
>
>
> On Sat, Dec 31, 2011 at 2:21 PM, Amit Mangal 
> <forum.amit.man...@gmail.com>wrote:
>
>> Hi there,
>>
>> I want to do recording using AudioRecord API. please let me know how to
>> do recording with AudioRecord API and save file in desired location.
>>
>> Any code willbe highly appreciated.
>>
>> thanks
>>
>> --
>> 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
>
>
>  --
> 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

-- 
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