i want find loudspeaker state of android phone during telephone call conversation

105 Views Asked by At

I want to find loudspeaker state during call conversation. like speaker state true/ false. my code in call receiver

AudioManager audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
audioManager.setMode(AudioManager.MODE_IN_CALL);
Log.v("Loud_Speaker_state", "" + audioManager.isSpeakerphoneOn());
0

There are 0 best solutions below