开发者

Is there a way to actively listen on bluetooth audio channel?

I want to be able to use the bluetooth headset as a microphone.

Is it开发者_如何学Python possible to set it to microphone mode?


Yes, you have to use startBluetoothSco()

This method can be used by applications wanting to send and received audio to/from a bluetooth SCO headset while the phone is not in call.


AudioManager localAudioManager = (AudioManager) getSystemService("audio");
            localAudioManager.setBluetoothScoOn(true);
            localAudioManager.startBluetoothSco();
            localAudioManager.setMode(2);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜