Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android set speakerphone on programmatically

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

like image 567
Matroska Avatar asked Apr 18 '10 17:04

Matroska


1 Answers

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

I think this is the permission you need MODIFY_AUDIO_SETTINGS

like image 165
the100rabh Avatar answered Sep 16 '22 19:09

the100rabh