Bluetooth Headphone Volume for Android

How can I programmatically set the system volume for a voice call when using a bluetooth speaker?

Using this:

mAudioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, myVolume, 0); 

when a call is made (using the "Count"), it does not change anything.

I searched a lot before posting, but cannot find hints on how to do this.

Thanks in advance.

+4
android bluetooth volume
Dec 17 '10 at 16:30
source share
2 answers

I also had one problem and found out that Android uses int 6 for Bluetooth volume and is not documented.

Just use 6 instead of AudioManager.STREAM_VOICE_CALL and try it should work

+13
Feb 04 '12 at 2:15
source share

It will work

 mAudioManager.setStreamVolume(6, value, 0 /* flags, 0 = no flags */); 
0
May 03 '19 at 10:17
source share



All Articles