Now I use the SLC tool to compiling for B4A (jar + xml file)
But I get many warnings like this :
Working with class: com.felhr.deviceids.CH34xIds
No ShortName annotation found for class: CH34xIds
And then I missing many daclarations of classes ...
UsbSerial wraps this open source project. You should never try to read serial data synchronously in Android (on the main thread). The library together with AsyncStreams takes care of it.
hmm, the problem is that I must read many settings from a device (many commands) and show the settings in my application
so I wanted write a sub for every command like this :
sub ReadSetting1 as float
end sub
sub ReadSetting2 as byte
end sub
sub ReadSetting3 as string
end sub
and in my main :
dim f as float = ReadSetting1
dim b as byte = ReadSetting2
dim s as string = ReadSetting3
That sound complicated with a async communication ...