Bramaramba
Bramaramba

Reputation: 1

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

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());

Upvotes: 0

Views: 103

Answers (0)

Related Questions