Only I need is
 <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
Thanks

---------- Forwarded message ----------
From: DAVIDT <dtole...@gmail.com>
Date: 2010/2/5
Subject: how can I enable the speakerphone when a call is in progress.
To: Android Developers <android-developers@googlegroups.com>


how can I enable the speakerphone when a call is in progress.

I have tried doing this:

       AudioManager
myaudiomanager=(AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
       myaudiomanager.setSpeakerphoneOn(true);

But, it doesn't work.

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