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
Here is the Java code
B4X:
audioManager = (AudioManager)Context.getSystemService(Context.AUDIO_SERVICE);
audioManager.setSpeakerphoneOn(false);