3

If my application records some audio with MediaRecorder, is it possible to play the recorded audio file into a call that was started with ACTION_CALL or ACTION_DIAL?

I see that I can start calls from an application but is there a way for my application to know that the call was answered? At this point I would like to play a file of audio into the call. Then, is there a way for me to end the call?

mlw
  • 375
  • 1
  • 2
  • 15

2 Answers2

0

android.intent.action.ANSWER may be what you are looking for, or possibly PhoneStateIntentReceiver.

Brandon Frohbieter
  • 17,563
  • 3
  • 40
  • 62
0

This not yet possible on Android. See this feature request.

You can record your voice from microphone, but you can not record the sound of the other party.

Peter Knego
  • 79,991
  • 11
  • 123
  • 154
  • Thanks. Just a clarification. I am wondering if I can play audio into a call, not record audio from a call. Automated telemarketers can do it. They make a call, and then play a message to you. – mlw Oct 24 '10 at 14:24
  • same thing im trying to achieve, and came to this post, as you said it is not possible on Android, i want to know is it possible in android version 2.3.3 or later ?? – FosterZ Mar 10 '11 at 08:14
  • I don't have a device with 2.3.3 or later, so I wouldn't know. – Peter Knego Mar 10 '11 at 09:11