Android 我从来没有从BluetoothSocket中出来过
知道是什么导致了这个问题吗? 我执行Android 我从来没有从BluetoothSocket中出来过,android,bluetooth,Android,Bluetooth,知道是什么导致了这个问题吗? 我执行connect()函数,不再执行其他代码 代码: 日志: 05-01 20:10:00.569 24445-24445/bluetooth.example.com.bluetoothserial D/OpenGLRenderer﹕ Enabling debug mode 0 05-01 20:10:07.606 24445-24445/bluetooth.example.com.bluetoothserial D/BluetoothUtils﹕ isSoc
connect()
函数,不再执行其他代码
代码:
日志:
05-01 20:10:00.569 24445-24445/bluetooth.example.com.bluetoothserial D/OpenGLRenderer﹕ Enabling debug mode 0
05-01 20:10:07.606 24445-24445/bluetooth.example.com.bluetoothserial D/BluetoothUtils﹕ isSocketAllowedBySecurityPolicy start : device null
05-01 20:10:07.606 24445-24445/bluetooth.example.com.bluetoothserial W/BluetoothAdapter﹕ getBluetoothService() called with no BluetoothManagerCallback
05-01 20:10:07.626 24445-24445/bluetooth.example.com.bluetoothserial D/BluetoothSocket﹕ connect(), SocketState: INIT, mPfd: {ParcelFileDescriptor: FileDescriptor[61]}
05-01 20:10:08.086 24445-24445/bluetooth.example.com.bluetoothserial I/Choreographer﹕ Skipped 31 frames! The application may be doing too much work on its main thread.
有什么想法吗?我没有正确的UUID,我通过获得正确的UUID并在代码中替换它来解决它 如何获取UUID:
ParcelUuid[] list = mmDevice.getUuids();
ParcelUuid[] list = mmDevice.getUuids();