简体   繁体   English

持续轮询NFC标签

[英]Continuously polling a NFC Tag

I am wondering if it is possible to poll whether a (passive) NFC Tag is still present on an unmodified Android device. 我想知道是否可以轮询未修改的Android设备上是否仍然存在(被动)NFC标签。 For instance, I put my phone on a NFC tag and I want to poll every, say minute or so, whether the tag is still attached to the backside of my phone. 例如,我将手机放在NFC标签上,并且想每隔一分钟左右轮询一次,看看标签是否仍贴在手机的背面。 So, I would like to do a periodical request, or periodically read the data from the NFC chip. 因此,我想进行定期请求,或定期从NFC芯片读取数据。

So far, I have not found anything about this. 到目前为止,我还没有发现任何有关此的信息。 Therefore, I am wondering if this is possible or not? 因此,我想知道这是否可行?

您可以使用此方法检查标签的存在: isConnected()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM