双向Android的光束 [英] Bi-Directional Android Beam

查看:168
本文介绍了双向Android的光束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面就是我想要做的2银河Nexuses运行Android 4.0 NFC功能:

Here's what I'm trying to do with 2 Galaxy Nexuses running Android 4.0 with NFC capabilities:

  • 在设备A和B在足够接近发起Android的光束用户界面。
  • 设备A发送束设备B
  • 在设备B接收波束,进行一些处理,然后发送一个响应束回装置A

我有一个从最初的梁 - >乙工作正常,但不能通信回来。我也想送更多的东西不仅仅是一个ACK,就像一个小的有效载荷数据。有没有办法做到这一点在NFC与当前的API或我将不得不把目光投向WIFI / BT等P2P通信?

I have the initial beam from A -> B working fine but not the communication back. I do want to send something more than just an 'ACk', like a small payload of data. Is there any way to do this over NFC with the current APIs or will I have to look towards WiFi/BT p2p communication?

推荐答案

我不认为这是可能的,除非你拉设备分开,然后从Device B把它们放在一起一次明确束数据到与触摸梁UI。您可以使用NFC来,虽然启动BT连接,并把工作做好。

I don't think this is possible unless you pull the devices apart then put them together again and explicitly beam data from Device B to A with the touch to beam UI. You can use NFC to initiate a BT connection though and get the job done.

这篇关于双向Android的光束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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