I am developing application for call recording but i am not able to
record the call and its throwing the exception .My code is as follows.

Code:



mediaRec.setAudioSource(AudioSource.VOICE_CALL);
                        mediaRec.setOutputFormat(OutputFormat.RAW_AMR);
                        mediaRec.setAudioEncoder(AudioEncoder.AMR_NB);
                        
mediaRec.setOutputFile("/sdcard/Music/"+System.currentTimeMillis()
+".amr");//ringtones/
                        mediaRec.prepare();
                        mediaRec.start();



The same code above working fine with parameter
AudioSource.DEFAULT,AudioSource.MIC but its not recording both way
conversation and when I am using parameter AudioSource.VOICE_CALL my
application gets force close.

Plz suggest any other way to accomplish this thanks in advance.

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to