安卓蓝牙耳机音量 [英] Android Bluetooth Earpiece Volume
本文介绍了安卓蓝牙耳机音量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在使用蓝牙耳机时以编程方式设置语音通话的系统音量?
how can I programmatically set the system volume for voice call when using a bluetooth earpiece?
使用这个:
mAudioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, myVolume, 0);
当通话(使用 Earpice)正在进行时,它不会改变任何东西.
when a call (using the Earpice) is in progress it doesn't change anything.
我在发帖前搜索了很多,但找不到任何关于如何操作的提示.
I searched a lot before posting, but can't find any hint on how to do it.
提前致谢.
推荐答案
我也遇到了同样的问题,发现 Android 使用 int 6 作为蓝牙音量并且没有记录.
I also got in same problem and found out that, Android is using int 6 for bluetooth volume and not documented.
只需使用 6 而不是 AudioManager.STREAM_VOICE_CALL 并尝试,它应该可以工作
Just use 6 instead of AudioManager.STREAM_VOICE_CALL and try, It should work
这篇关于安卓蓝牙耳机音量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文