编程方式更改蓝牙音量? [英] Programatically change bluetooth volume?

查看:122
本文介绍了编程方式更改蓝牙音量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建将由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的蓝牙听筒音量

触发系统音量条

<一个href=\"http://stackoverflow.com/questions/2874743/android-volume-buttons-used-in-my-application\">Android - 在我的应用程序使用音量按键

不要忘了这个权限:

    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> 

由于Doomsknight初始提示: - )

Thanks to Doomsknight for the initial hint :-)

这篇关于编程方式更改蓝牙音量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆