AudioManager am=(AudioManager)getSystemService(AUDIO_SERVICE);
am.setSpeakerphoneOn(true);
am.setMode(AudioManager.MODE_IN_CALL);
//Log.e(tag, msg)
mMediaPlayer = MediaPlayer.create(this, R.raw.ek);
mMediaPlayer.start();
Hello,
I am receiving incoming call and i want to play the sound so i want
that the caller can listen it on other side. So i am using the
AudioManager's setMode(AudioManger.MODE_IN_CALL)
But yet it is not working as caller is not able to listen it. so can
some one tell me what is wrong in it ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---