我需要创建将由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的蓝牙听筒音量
触发系统音量条
Android - 在我的应用程序使用音量按键
不要忘了这个权限:
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
由于Doomsknight初始提示: - )
Thanks to Doomsknight for the initial hint :-)
上一篇:从ViewPager设置壁纸壁纸、ViewPager
下一篇:ValueInjecter:如何忽略某些特性,同时执行.InjectFrom&LT; UnflatLoopValueInjection&GT;(数据)?特性、数据、InjectFrom、ValueIn