AudioManagaer 's setMode()

All your problems with Audio, Video and Images.

AudioManagaer 's setMode()

Postby kartik_trivedi » Wed Jul 08, 2009 9:45 am

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 ?
Sun Certified Java Developer
Forum Nokia Champion
kartik_trivedi
Developer
Developer
 
Posts: 28
Joined: Tue Jan 20, 2009 7:19 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 10 guests