通过蓝牙发送/接收数据

7
我尝试从Android设备发送/接收字符串。我在谷歌上搜了3个小时,但没有找到适用的方法。最接近的是这个链接:fella。然而,我遇到了以下错误:

02-19 15:44:17.680    4680-4680/com.example.jelle.bluetoothconnector W/System.err﹕ at com.example.jelle.bluetoothconnector.BluetoothConnection.init(BluetoothConnection.java:38)
02-19 15:44:17.680    4680-4680/com.example.jelle.bluetoothconnector W/System.err﹕ at com.example.jelle.bluetoothconnector.BluetoothConnection.<init>(BluetoothConnection.java:25)
02-19 15:44:17.680    4680-4680/com.example.jelle.bluetoothconnector W/System.err﹕ at com.example.jelle.bluetoothconnector.ConnectorActivity.btnBluetooth_onCLick(ConnectorActivity.java:92)
02-19 15:44:17.680    4680-4680/com.example.jelle.bluetoothconnector W/System.err﹕ at java.lang.reflect.Method.invoke(Native Method)
02-19 15:44:17.680    4680-4680/com.example.jelle.bluetoothconnector W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:372)

有人能帮我吗?我只需要一些可以通过蓝牙发送/接收字符串的代码来帮助我入门。

谢谢!

1个回答

5

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接