问题描述
我需要创建将由pressing音量加/减键[手机上]改变蓝牙耳机音量的应用程序。虽然我还没有不知道如何捕捉音量加/减键,我目前更感兴趣的是一个人如何可以通过编程改变蓝牙耳机音量?感谢您的任何提示: - )
I need to create an application that will change the bluetooth headset volume by pressing the volume up/down keys [on the phone]. While I yet don't know how to catch the volume up/down keys, I am currently more interested in how one can change the bluetooth headset volume programatically? Thanks for any hint :-)
请注意:
我想有蓝牙音量使用手机时,音量加/减键同时使用蓝牙和手机拨号器正常/ GSM通话拨打电话对话一个得到。
Note:I want to have the bluetooth volume dialog one gets when using the phones volume up/down keys while making a call using bluetooth and the phones normal dialer / GSM call.
推荐答案
找到解S $ P $垫在这三个线程:
Find the solution spread over this three threads:
Android - 在我的应用程序使用音量按键
不要忘了这个权限:
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
由于Doomsknight初始提示: - )
Thanks to Doomsknight for the initial hint :-)
这篇关于编程方式更改蓝牙音量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!