Android的蓝牙听筒音量 [英] Android Bluetooth Earpiece Volume
本文介绍了Android的蓝牙听筒音量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用蓝牙耳机时,我以编程方式设置为语音呼叫系统卷?
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
这篇关于Android的蓝牙听筒音量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文