简体   繁体   English

NFC从Android 2.3.3接收NDEF标签

[英]NFC Receive NDEF tags from Android 2.3.3

I have been developing an Android application which sends NDEF messages via Android Beam and a desktop application which receives them. 我一直在开发一个Android应用程序,该应用程序通过Android Beam发送NDEF消息,以及一个接收该消息的桌面应用程序。

Everything works as expected; 一切都按预期进行; however, I personally believe that the Android Beam "Tab to beam"-screen is too circumstantial. 但是,我个人认为Android Beam“ Tab to Beam”屏幕过于谨慎。 I know it is not possible to suppress the "Beam-Screen". 我知道无法抑制“光束屏幕”。 I wan´t to create an application, which is able to receive simple NDEF tags from my Android mobile (sent with NfcAdapter.enableForegroundNdefPush() ). 我不想创建一个应用程序,该应用程序能够从我的Android手机接收简单的NDEF标签(通过NfcAdapter.enableForegroundNdefPush()发送)。

could anyone give me some clues to achieve that? 谁能给我一些实现这一目标的线索? is there a package i could use? 我可以使用一个包装吗? i tried to use .net but there is no API for it. 我尝试使用.net,但没有API。 I would prefer java. 我更喜欢java。

Hardware: 4.0.4 Android. 硬件:4.0.4 Android。 ACR122 nfc reder/writer. ACR122 NFC重做器/写入器。

Any suggestions would help me. 任何建议都会对我有帮助。

Thanks in advance MB 在此先感谢MB

To answer my own question: 要回答我自己的问题:

http://code.google.com/p/ismb-npp-java/wiki/NppFromACR122ToPhone http://code.google.com/p/ismb-npp-java/wiki/NppFromACR122ToPhone

That worked for me! 那对我有用! it is not realy stable but it works.... I created a GUI and fused the two main classes. 它不是很稳定,但是可以正常工作。...我创建了一个GUI并融合了两个主要类。 I am able to send and receive with one application now. 我现在可以使用一个应用程序发送和接收。

Beware! 谨防! ics (ice cream sandwich) has problems with recognizing simple NDEF actions. ics(冰淇淋三明治)在识别简单的NDEF动作时遇到问题。 I used 2.3.3. 我用的是2.3.3。

http://www.nfcrumors.com/12-16-2011/ice-cream-sandwich-bug-nfc-tag/ http://www.nfcrumors.com/12-16-2011/ice-cream-sandwich-bug-nfc-tag/

If you want to use NFC with Android 4.0.x you should use Android Beam (from google) it was a lot easier to implement. 如果您想在Android 4.0.x上使用NFC,则应该使用Android Beam(来自google),实现起来容易得多。

Regards 问候

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

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