Wednesday, February 8, 2023
HomeiOS Developmentandroid - Unable to Activate Loudspeaker whereas on name in Java

android – Unable to Activate Loudspeaker whereas on name in Java


I’m making a name functionalituy the place I’m utilizing third get together name service for calling characteristic in React Native. I need to activate/off speaker whereas on name.

I’ve used this bundle nevertheless it additionally not helped. Additional I’ve tried modifying the AudioManager code and provides following permissions additionally –

<uses-permission android:identify="android.permission.READ_PHONE_STATE" />
<uses-permission android:identify="android.permission.MODIFY_AUDIO_SETTINGS" />

I’ve additionally tried including some adjustments to audioManager.setSpeakerphoneOn(allow); however nothing is working for me to set speaker on.

I’ve additionally tried doing

audioManager.setMode(AudioManager.MODE_IN_CALL);

& Additionally tried

audioManager.setMode(AudioManager.MODE_RINGTONE;

However none of those choices helped. I wanted this urgently to be performed. For now I want in Android so any options by which it could possibly work ? that might be useful.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments