On Sat, Sep 1, 2012 at 12:16 AM, Nakul Maheshri
<[email protected]> wrote:
> I want to play audio file during call (like answering machine)
> i  am using following code
>        final AudioManager am;
>        MediaPlayer mp=MediaPlayer.create(getApplicationContext(),R.raw.na);
>         am=(AudioManager) getSystemService(AUDIO_SERVICE);
>         am.setSpeakerphoneOn(false);
>         am.adjustStreamVolume(AudioManager.STREAM_VOICE_CALL,
> AudioManager.ADJUST_LOWER, 0);
>         mp.start();
> it play audio file but by using speaker. but i do not want this i want only
> caller can hear..
> How to do that?? It Require any hardware support??
> Thanks in advance

You cannot do this ever under any circumstance.

Unfortunate end of story, even at the firmware level you have no
access to the in call audio stream.

Is this in the FAQ for this group?  Perhaps it should be included..

kris

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to