Hi,
I toyed with b4a for some time now. I read the tutorials, am able to create a simple app, test it and get it in the app store. As long as it is a simple app with an activity, a couple of buttons and text fields, that is easy. But as soon as I need more 'control' I find myself drowning in OOP, libraries, classes etc.
As an example: At the moment I'm trying to make an app that talks to a PIC controlled Bluetooth device I create some years ago. Got all the BT examples, implemented Asyncstreams (changed the firmware in my Bluetooth device to support that) and managed to change the example BT 'chat' app to control my device and to show the data it sends. I now need to inspect, convert and use that data. There are libraries for that, but how do I use them? A statement like
has me more or less baffled.
It is not that I fail to understand what is needed. I'm able to do this is in plain C or assembler on the PIC controller at the other side of the BT connection. But I miss some connection with the way one writes code in an Android - B4A environment. It seems to need a different way of thinking about programming. Can anyone point me to sources to enlighten me? Or is the best way the way I use now: looking at examples and then trial-and-error until I have something that suddenly works?
Regards,
Paul
I toyed with b4a for some time now. I read the tutorials, am able to create a simple app, test it and get it in the app store. As long as it is a simple app with an activity, a couple of buttons and text fields, that is easy. But as soon as I need more 'control' I find myself drowning in OOP, libraries, classes etc.
As an example: At the moment I'm trying to make an app that talks to a PIC controlled Bluetooth device I create some years ago. Got all the BT examples, implemented Asyncstreams (changed the firmware in my Bluetooth device to support that) and managed to change the example BT 'chat' app to control my device and to show the data it sends. I now need to inspect, convert and use that data. There are libraries for that, but how do I use them? A statement like
B4X:
CallSub2(ChatActivity, "NewMessage", BytesToString(Buffer, 0, Buffer.Length, "UTF8"))
has me more or less baffled.
It is not that I fail to understand what is needed. I'm able to do this is in plain C or assembler on the PIC controller at the other side of the BT connection. But I miss some connection with the way one writes code in an Android - B4A environment. It seems to need a different way of thinking about programming. Can anyone point me to sources to enlighten me? Or is the best way the way I use now: looking at examples and then trial-and-error until I have something that suddenly works?
Regards,
Paul