Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/190.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android BluetoothGatt.disconnect()打开NFC_Android_Bluetooth_Bluetooth Lowenergy_Nfc - Fatal编程技术网

Android BluetoothGatt.disconnect()打开NFC

Android BluetoothGatt.disconnect()打开NFC,android,bluetooth,bluetooth-lowenergy,nfc,Android,Bluetooth,Bluetooth Lowenergy,Nfc,我有一个连接到蓝牙设备的应用程序,它基于以下示例: 每次我调用BluetoothGatt.disconnect()时,它都会启用NFC。我在代码中没有使用NFC,清单中没有NFC 看起来BluetoothGatt.disconnect强制启动NFC服务,这毫无意义,每次都会发生: com.ble.ble I/BluetoothLeService:已断开与GATT服务器的连接。 D/BtGatt.btif:btif_gattc_上游_evt:Event 14 D/IOP\u DB\u BT:DB

我有一个连接到蓝牙设备的应用程序,它基于以下示例:

每次我调用BluetoothGatt.disconnect()时,它都会启用NFC。我在代码中没有使用NFC,清单中没有NFC

看起来BluetoothGatt.disconnect强制启动NFC服务,这毫无意义,每次都会发生:

com.ble.ble I/BluetoothLeService:已断开与GATT服务器的连接。 D/BtGatt.btif:btif_gattc_上游_evt:Event 14 D/IOP\u DB\u BT:DB\u query\u create:id DisablePwlCtrReq::key\u BDADDR,值30:ae:a4:0d:79:e6 D/IOP\U DB\U BT:DB\U查询\U添加\U键:键\U LMP\U MFCT,值0 D/IOP\u DB\u BT:DB\u查询\u添加\u键:键\u LMP\u版本,值0:0 D/IOP\U DB\U BT:DB\U查询\U添加\U键:键键\U目录\U全部,值* D/IOP\U DB\U BT:DB\U查询\U执行:结果1 D/BluetoothRemoteDevices:aclStateChangeCallback:状态:已断开与设备的连接:30:AE:A4:0D:79:E6 D/KeyguardViewMediator:收到android.bluetooth.device.action.ACL_已断开连接的btforsmartlock=false I/NFC服务:android.bluetooth.device.action.ACL\u已断开连接,重新启动 D/B自动连接服务:android.bluetooth.device.action.ACL\u已断开连接 D/B自动连接服务:操作\u ACL\u已断开,原因是22linktype为2 D/BleAutoConnectService:getAddress()-address==>null D/BluetoothAdapterService(1113351520):调用绑定设备 D/BluetoothAdapterService(1113351520):调用绑定设备 D/BluetoothAdapterService(1113351520):调用绑定设备 I/NFC服务:启用NFC

为什么会这样?为什么是NFC?如何防止NFC启动

在三星I9300、安卓4.3上测试