双向Android的光束光束、双向、Android

2023-09-05 11:13:27 作者:瞳ヤ殇

下面就是我想要做的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.