雅阁驸马 2018-06-14 11:17 采纳率: 0%
浏览 4221
已结题

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()之间的区别是什么呢?

  • 写回答

2条回答

  • devmiao 2018-06-14 15:54
    关注
    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算