Android set speakerphone on programmatically

Matroska picture Matroska · Apr 18, 2010 · Viewed 15.6k times · Source

I am trying to set speakerphone on in a call programmatically using audiomanager.setSpeakerphoneOn(true) in a service but it seems it is not working and I don't know why. Should I do something else?

Thanks

Answer

the100rabh picture the100rabh · Apr 18, 2010

check if your manifest file has the permissions need to do this operation.

I think this is the permission you need MODIFY_AUDIO_SETTINGS