Android的蓝牙;可能吗? [英] Android Bluetooth; Is it Possible?

查看:117
本文介绍了Android的蓝牙;可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在考虑为Android编写蓝牙应用程序,我需要以下功能:

So I'm considering writing a Bluetooth app for android, I'll need the following functionality:

是否有可能使用蓝牙的Andr​​oid 2.3.6


  • 广播该应用程序允许其他手机具有相同
    应用程序的运行。

  • 电话(一个充当服务器和多于一个之间共享的数据
    用户在同一时间接收文件)。

  • One手机充当服务器和客户端在同一时间。

  • 一个Android手机发送,并在同一时间收到。

  • 一部手机可以与其他通信时,它与另外一个聊天
    设备。

感谢

推荐答案

它非常简单:

使用需要与其他设备配对的蓝牙,没有你无法连接。

With bluetooth you need to be paired with the other device, without that you cannot connect.

一旦配对,您可以尝试连接到手机。但是,这种手机需要监听传入BT连接。

Once paired you can try to connect to that phone. However that phone needs to be listening for incoming BT connections.

通常你不能与海誓山盟连接2个设备的两倍。一旦人们BT连接建立,它具有足够了。

Usually you cannot connect 2 devices twice with eachother. Once one BT connection is established, it has to suffice.

您可以用文件等怎么做,取决于您的应用程序已被授予的权限。

What you can do with files etc depends on the permission your app has been granted.

一旦连接您有来电,每个设备上的字节流传出。您可以code任何一种通讯或协议与2,它取决于你。

Once connected you have an incoming and an outgoing bytestream on each device. You can code any kind of communication or protocol with those 2, its up to you.

这篇关于Android的蓝牙;可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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