开发者

Differences between Google NFC API and Open NFC API? [closed]

开发者 https://www.devze.com 2023-04-08 18:36 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this po
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 7 years ago.

Improve this question

As the title suggests I am looking for information that would allow me to differentiate and choose one of both possibilities in order to develop of NFC on Android.

link NFC Google API:http://developer.android.com/resources/samples/NFCDemo/index.html

link NFC Open API: http://www.open-nfc.org/opennfc_library/overview-summary.htm开发者_运维百科l

Can you tell me what you know about this?

Thanks in advance!


please check this link - there is in a quite detailed way described the difference between both solutions. The answer written here by Sebastien is the official Open NFC stack statement. Also Nikolay Elenkov is right about the fact, that unless you are doing your own device or you are re-flashing it somehow you will use the Google API only.

BR STeN


At the moment (Android 2.3.4), the Android platform does not integrate the Open NFC stack. This stack has several advantages: not limited to one particular NFC hardware, portable to many different environments (not only Android), many additional features compared to the current stack. On the other hand, because Open NFC is not part of the standard Android environment, it requires some work (but it is actually quite easy) to use this stack in an Android platform. The Open NFC documentation describes this process.

The Open NFC stack is parallel activity and is optional replacement to the current stack. Due to its description it overcomes some limits of the Google NFC stack implementation and makes new HW adaptions (i.e. support for new tag types) easier…

This stack is intended to by used by device manufacturers, not mobile developers, because the standard Android kernel does not support modules loading, the Open NFC stack cannot be simply installed as another application, it requires a kernel change. But once the kernel is replaced, it is quite easy to deploy and use the Open NFC stack. An application developer should probably stick to the OS features, even if more limited, since they assure the portability of the code over any NFC-enabled phone. But if you are trying to use "more" features than what comes with Android, Open NFC is a good candidate.

In Conclusion : Until some phone manufacturer will integrate the stack into device, it does not make too much sense to be interested in Open NFC stack. An app developer cannot make use of Open NFC unless it is on hardware.


You already have the links, how about reading them?

Unless you are flashing your own firmware, you have to stick to the APIs available in the Android SDK. If you are building/customizing your own device you can flash an image and kernel that supports Open NFC. I haven't actually used it, but it looks like Open NFC offers lower level APIs, thus giving you more control.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号