我想了解工作客戶端服務器藍牙。 Android是客戶端。 PC是服務器。我發現了code。這工作了三星Galaxy 10.1(安卓3.2),但不工作三星Galaxy S(機器人2.3.3)和HTC野火(Android 2.2)。發現服務遠程藍牙
MY_UUID = UUID.fromString("04c6093b-0000-1000-8000-00805f9b34fb");
04-25 18:32:37.023: D/BluetoothCommandService(13665): setState() 1 -> 2
04-25 18:32:37.033: I/BluetoothCommandService(13665): BEGIN mConnectThread
04-25 18:32:37.063: E/BluetoothService.cpp(102): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
04-25 18:32:37.103: E/BluetoothCommandService(13665): Unable to start Service Discovery
04-25 18:32:37.103: E/BluetoothCommandService(13665): java.io.IOException: Unable to start Service Discovery
04-25 18:32:37.103: E/BluetoothCommandService(13665): at android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:367)
04-25 18:32:37.103: E/BluetoothCommandService(13665): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)
04-25 18:32:37.103: E/BluetoothCommandService(13665): at com.luugiathuy.apps.remotebluetooth.BluetoothCommandService$ConnectThread.run(BluetoothCommandService.java:258)
04-25 18:32:37.103: D/BluetoothCommandService(13665): setState() 2 -> 1
不工作,可以有更多的選擇嗎? – alezhka 2012-04-26 07:01:38
這是工作的是Android 2.3,但不包括2.2 – alezhka 2012-04-26 07:43:20
給你帶來任何新的錯誤或相同issue..and它與所有2.3設備的工作原理,你有 – 2012-04-26 07:44:09