Android Bluetooth Earpiece Volume

后端 未结 2 1928
执笔经年
执笔经年 2021-01-13 15:52

how can I programmatically set the system volume for voice call when using a bluetooth earpiece?

Using this:

mAudioManager.setStreamVolume(AudioManag         


        
相关标签:
2条回答
  • 2021-01-13 16:22

    I also got in same problem and found out that, Android is using int 6 for bluetooth volume and not documented.

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

    0 讨论(0)
  • This will work.

    mAudioManager.setStreamVolume(6, value, 0 /* flags, 0 = no flags */);
    
    0 讨论(0)
提交回复
热议问题