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