使用蓝牙和套接字从Android设备到PC的数据传输

时间:2016-03-09 10:18:53

标签: android sockets bluetooth

我需要使用蓝牙从我的Android设备到我的电脑进行数据传输。 实际上,我认为最好的解决方案是为我的Android设备创建一个客户端套接字,为我的电脑创建一个服务器套接字来实现这种数据传输并查看结果。有什么有用的东西可以提供吗?

我正在使用Android Studio

1 个答案:

答案 0 :(得分:0)

如果您尝试通过蓝牙发送数据,则需要实施BluetoothSocket逻辑。你可以在这些链接中找到一些教程;

http://code.tutsplus.com/tutorials/create-a-bluetooth-scanner-with-androids-bluetooth-api--cms-24084

http://www.elecfreaks.com/677.html

详细详细的google doc click here