代号一个NFC信标 [英] codename one nfc beacon
问题描述
我正在尝试使用nfc和代号为One的信标进行一些测试.我读到Codename One在某些旧帖子上不支持它们,对此有什么新闻吗?似乎唯一的方法是在本机上进行,但我是完全陌生的.有何建议从何处开始或有任何提示?
i am trying to do some tests with nfc and beacons with Codename One. I'm reading that Codename One doesn't support them on some old posts, any news about it? It seems that the only way is going on native but i'm totally new to it. Any suggestions where to start or any hint?
预先感谢
推荐答案
您可以在 http://www.codenameone.com/cn1libs.html
您可以在其中看到一些本机代码实现.编写本机接口更具挑战性,因为自动完成通常无法正常工作,并且模拟器无法对其进行测试.如果您可以在GitHub或其他地方找到与想要为Andriod,iOS等编写的代码类似的代码示例,则可以让您有所作为.
There you can see some of the native code implementations. It is more challenging to write a native interface, since the autocomplete won't generally work and the simulator can't test it. If you can find code examples similar to what you want to achieve written for Andriod, iOS, etc., on GitHub or other places, that can give you a head start.
此外,您可以下载构建的源代码并将其加载到Android Studio或XCode中,然后在其中进行调试.
Also, you can download the source code of your build and load it into Android Studio or XCode and debug it there.
这篇关于代号一个NFC信标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!