如何从PC发送文件到Android设备编程 [英] How to send files from PC to Android device programmatically

查看:290
本文介绍了如何从PC发送文件到Android设备编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关我的应用程序需要从PC将文档发送至Android设备编程。我沿着一些论坛搜索,但没有找到这方面的任何样本。

For my application i need to send a document from PC to Android device programmatically. I've searched along some forums, but couldn't find any sample for this.

任何一个可以帮助我的样本code。先谢谢了。

Can any one help me with the sample code. Thanks in advance.

问候,
史密斯

Regards, Smith

推荐答案

您可以只使用一个套接字连接。个人电脑将是你的服务器和Android应用程序将是你的客户端。
这样,您就可以发送数据(包括文件i presume)从移动设备到PC,反之亦然。

You could just use a socket connection. the pc would be your server and the android app would be your client. This way you can send data (including documents i presume) from your mobile device to your pc and vice versa.

这篇关于如何从PC发送文件到Android设备编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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