Android设备之间传送数据 [英] Transfer data between android devices

查看:119
本文介绍了Android设备之间传送数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个Android应用程序,并想使用户能够传输数据(例如,通过TCP)。两者都有安装我的应用程序。是否有任何框架或指导如何使用蓝牙和/或W-LAN获得良好的用户体验?他们如何发起连接?

I have created an android app and would like to enable users to transfer data (e.g. over TCP). Both have my app installed. Is there any framework or guide how to use bluetooth and/or w-lan to get a good user experience? How do they initiate the connection?

谢谢!

推荐答案

我学会了如何在Android上使用蓝牙通过的环节,分析了例子的源$ C ​​$ C。
关于通过TCP / IP发送的信息,使用普通的Java为(插座,例如)。你可以把它的唯一额外的是发送一个Intent,激活无线,如果是尚未激活。

I learned how to use Bluetooth on Android by this link, analysing the source code of the example. About sending information through TCP/IP, use normal Java for that (Sockets, for example). The only extra you could put it is to send an Intent to activate Wireless if was not activated yet.

这篇关于Android设备之间传送数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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