开发者

Android Bluetooth Earpiece Volume

how can I programmatically set the system volume for voice call when using a bluetooth earpiece?

Using this:

mAud开发者_如何转开发ioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, myVolume, 0);

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.

Thanks in advance.


I also got in same problem and found out that, Android is using int 6 for bluetooth volume and not documented.

Just use 6 instead of AudioManager.STREAM_VOICE_CALL and try, It should work


This will work.

mAudioManager.setStreamVolume(6, value, 0 /* flags, 0 = no flags */);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜