是否有可能从一个Android设备传输数据的NFC到另一个没有“触摸梁”屏幕? [英] Is it possible to transfer NFC data from one Android device to another without the 'Touch to Beam' screen?

查看:224
本文介绍了是否有可能从一个Android设备传输数据的NFC到另一个没有“触摸梁”屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从一个Android设备发送数据NFC到另一个。我是能够成功地做到这一点使用轻触即可传输功能。不过,我想将数据传送到只要两个设备在一起自动进行。

I am trying to send NFC data from one Android device to another. I was able to do it successfully using the 'Touch to Beam' functionality. But I would like the data transfer to take place automatically as soon as both the devices are together.

我看到了这个问题,在计算器多次回答。不幸的是,虽然有人说其不可能从一个Android设备发送数据NFC另一个这样一来,一些人建议尝试前台-调度(其官方文件说,现在是很precated)。我是不是成功的前台调度虽然我不是如果由于我的失误完全肯定。几乎所有的问题都回答1年回来,所以我在想,如果谷歌改变的东西来实现。我的两个设备是在Android 4.0或更高版本,而不是4.4。

I saw this question answered in StackOverflow multiple times. Unfortunately, while some say its not possible to send NFC data from one Android device to another this way, some others suggest to try "foreground-dispatching" (which the official documents say is now deprecated). I wasn't successful with "foreground dispatching" though I am not entirely sure if its due to my mistake. Almost all the questions were answered 1 year back, so I was wondering if Google changed something to achieve this. Both my devices are on Android 4.0 or later, but not 4.4.

推荐答案

在两款Android(4.0以上版本)设备之间通过NFC对等网络通信(又名Android Beam的),有没有办法避免的梁UI。因此,它是不可能没有触摸到梁。

When using NFC peer-to-peer communication (aka Android Beam) between two Android (4.0+) devices, there is no way to avoid the Beam UI. So it is not possible to transfer data without the "Touch to Beam".

在Android Beam功能(有效的Andr​​oid 2.3.3-2.3.7),这是有可能通过前台NDEF推送(现在是(一)德precated及(b)在Android 4.0+通过光束实现)。在没有推到梁窗口立即转移这种情况下NDEF消息。

Before Android Beam (effectively Android 2.3.3-2.3.7), this was possible through foreground NDEF push (which is now (a) deprecated and (b) on Android 4.0+ implemented through Beam). In that case NDEF messages where immediately transfered without the "Push to Beam" window.

只有开始与Android 4.4,有可能超过NFC两款Android设备之间无梁UI(实际上不使用Android Beam功能和对等网络模式下的所有通信):如果两个设备都是4.4或以上版本,一是设备可以使用Android HCE来模拟非接触智能卡和一台设备可以使用读取器 - 模式API(这仅在4.4引入读卡器模式API的工作,所以两个设备需要4.4+)与模拟的智能卡进行通信。

Only starting with Android 4.4, there is the possibility to communicate between two Android devices over NFC without the Beam UI (actually without using Android Beam and peer-to-peer mode at all): If both devices are 4.4+, one device can use Android HCE to emulate a contactless smartcard and one device can use the reader-mode API (this only works with the reader-mode API introduced in 4.4, so both devices need to be 4.4+) to communicate with the emulated smartcard.

这篇关于是否有可能从一个Android设备传输数据的NFC到另一个没有“触摸梁”屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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