Android建立蓝牙sco连接的方法

监听蓝牙连接上后建立sco打开蓝牙的操作有2种,它们的区别是什么呢?

  1. 收BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED蓝牙连接的广播,如果是connected,调用AudioManager.startBluetoothSco()和AudioManager.setBluetoothScoOn(true)

  2. 收BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED蓝牙连接的广播,如果是connected,调用BluetoothHeadset.connectAudio()

AudioManager.startBluetoothSco()和BluetoothHeadset.connectAudio()之间的区别是什么呢?

https://blog.csdn.net/smalljune/article/details/33383423

https://blog.csdn.net/smalljune/article/details/