openBluetoothAdapter的几个问题

发布于 7 年前作者 chaolong16494 次浏览最后编辑 7 年前来自 ask
  1. openBluetoothAdapter和closeBluetoothAdapter是否要成对出现

  2. openBluetoothAdapter fail后,onBLuetoothAdapaterStateChange监听到蓝牙适配器available后,是否还需要调用openBluetoothAdapter?如果open和close需要成对出现的话,是否要调用两遍close。

  3. onBLuetoothAdapaterStateChange监听到蓝牙适配器不可用后,是否需要closeBluetoothAdapater。在监听到蓝牙适配器可用后,再次openBluetoothAdapter。

0 回复
暂无回复