On Thu, Apr 14, 2011 at 10:53 AM, keithfry <keith...@gmail.com> wrote:
> I've read that it does not seem possible to play audio files while in
> a phone call.

You can play audio files while in a phone call, but they only come out
the earpiece or speaker of the phone your app is running on. The only
way the other end might hear it is if you are in speakerphone mode,
and I don't know how murky that turns out.

> I've tried using the AudioManager.requestAudioFocus() to get access to
> the voice call stream (AudioManager.STREAM_VOICE_CALL) but it always
> returns REQUEST_FAILED. I can play the tone using ToneGenerator
> without requesting audio focus, but it doesn't play over the voice
> call just over the headset speaker.
>
> Any suggestions?

What you want is not supported, sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

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