SparkOut wrote: ↑Sat Aug 28, 2021 8:59 am
I would love to learn LCB properly and how to bind FFIs, apart from having almost non-existent chance, it is hard to find entry points.
I agree, info on LiveCode Builder is scattered around in various in places, and some of the older examples are broken, like that Battery code from a now old blog post, due to things like changes in Android. Language guide, dictionary, and built in LCB samples are probably the most important sources.
It was difficult to get started for me. I had to (and still have to) learn a bunch of Objective C / C to use Apple APIs, and Android / Java is different from that, another hurtle. Personally I think it's worth the effort and gets easier the more you do it.
There is a command line tool that comes with LC that can automatically generate binding strings for Java stuff, but I've yet to try to used that.
FYI, I tried to test this in an emulated Android device, but it turns out that Android emulator does not have emulated bluetooth capabilities. I built a test app and installed it on my phone (Android 9) which worked fine.