使用蓝牙和套接字将数据从android设备传输到PC [英] data transfer from android device to pc using bluetooth and sockets

查看:148
本文介绍了使用蓝牙和套接字将数据从android设备传输到PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用蓝牙将数据从我的android设备传输到我的PC. 实际上,我认为最好的解决方案是为我的android设备创建一个客户端套接字,为我的PC创建一个服务器套接字,以实现此数据传输并查看结果.请提供任何有用的东西吗?

I need to do a data transfer from my android device to my pc using bluetooth. Actually, I think the best solution for this is to create a client socket for my android device and a server socket for my pc to realise this data transfer and see the results. any helpfull stuff to offer please?

我正在使用Android Studio

I'm working on Android Studio

推荐答案

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

If you are trying to send data via bluetooth you need to implement BluetoothSocket logic. You can find some tutorials for that in these links;

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

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

有关详细的Google文档,请单击此处

For detailed detailed google doc click here

这篇关于使用蓝牙和套接字将数据从android设备传输到PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆