1

i want to record both incoming and outgoing calls. is it possible in android.

i don't want to use Speaker mode. want without MIC.

i search a lot of but there is nothing to seems work.

please give me suggestion.

vivek tiwari
  • 645
  • 3
  • 10
  • 23
  • check out this link http://stackoverflow.com/questions/6839297/record-call-in-android-2-2 Thanks! – Renjith Dec 04 '12 at 10:54

2 Answers2

2

you can not record call in all handsets. Only in handsets which allowed the api to record voice call, you will be able to record a call. in those handsets you can set the audiosource of mediarecorder by using following.

MediaRecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_DOWNLINK | MediaRecorder.AudioSource.VOICE_UPLINK )

stinepike
  • 54,068
  • 14
  • 92
  • 112
  • About the audio source, combining `MediaRecorder.AudioSource.VOICE_DOWNLINK | MediaRecorder.AudioSource.VOICE_UPLINK` will result in the same value of `VOICE_DOWNLINK` , because `VOICE_DOWNLINK` is 3 and `VOICE_UPLINK` is 2 . You are not supposed to use those as flags. Only one is supposed to be used. – android developer Jun 21 '18 at 10:25
0

I think this links will help you...

link1

link2

link3

Thanks....

Community
  • 1
  • 1
user4232
  • 592
  • 1
  • 12
  • 37