How to get AudioManager.setSpeakerphoneOn?

NeoTechni

Well-Known Member
Licensed User
Longtime User
I'd like to use the speakerphone for an alarm clock application without using the AnswerCall library and that the thousand permissions that come with it.

Here is the Java code
B4X:
audioManager = (AudioManager)Context.getSystemService(Context.AUDIO_SERVICE);
audioManager.setSpeakerphoneOn(false);
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
Thank you. I was searching for speakerphone and that didnt show. I just needed to search for speaker
 
Upvote 0
Top