问题
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?
Thanks in advance
回答1:
You might look at the source code for a couple of CN1Libs at http://www.codenameone.com/cn1libs.html
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.
Also, you can download the source code of your build and load it into Android Studio or XCode and debug it there.
来源:https://stackoverflow.com/questions/36279837/codename-one-nfc-beacon