【问题标题】:Bluetooth pairing in Android. Event to be called when connection is lostAndroid中的蓝牙配对。连接丢失时调用的事件
【发布时间】:2013-04-07 13:11:58
【问题描述】:

我正在尝试将安卓应用与蓝牙设备配对,我需要知道当与该蓝牙设备的连接丢失时要调用哪个事件。

【问题讨论】:

    标签: android bluetooth


    【解决方案1】:

    您可以使用广播接收器并捕获 ACTION_ACL_DISCONNECTED 事件。 有关详细信息,请参见此处: How to programmatically tell if a Bluetooth device is connected? (Android 2.2)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-27
      • 1970-01-01
      相关资源
      最近更新 更多