SOLVED. Reading the jelly bean code source, i've found this code
// This is not an error but might cause users' confusion. Add log just in case. Log.i(LOG_TAG, "Forcing speaker off when initiating a new outgoing call..."); PhoneUtils.turnOnSpeaker(app, false, true); So that's it, in version 4.1 android forces speaker off in incoming and outgoing calls. My solution is turn on the speaker in my call state broadcast receiver, after start to make a call On Tuesday, December 18, 2012 9:45:07 AM UTC-2, André Lima wrote: > > - I have the permission MODIFY_AUDIO_SETTINGS declared > - I use the following code to make a call with speaker ON > > AudioManager am = null; > > am = (AudioManager)getSystemService(Context.AUDIO_SERVICE); > > am.setMode(AudioManager.MODE_IN_CALL); > > am.setSpeakerphoneOn(true); > > The problem is: This works fine in version 4.0 and lower. > Version 4.1 and higher doesn't works, but I don't receive errors. Just > doesn't work. > > Does anyone can help me with ideas? > > Best Regards, > André > > > -- 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

