Perhaps it is very obvious, but I am a bit stuck thinking about this and any help will be welcome...
I am developing a library with several classes. One of these classes executes some tasks in a different thread.
This thread must call a Sub in B4A, that will do some custom work. This B4A Sub has to be called synchronously (so will be executed in that thread) : it will modify some data and the thread will continue working with it.
Here is my doubt (and perhaps where I am wrong):
Thanks in advance
I am developing a library with several classes. One of these classes executes some tasks in a different thread.
This thread must call a Sub in B4A, that will do some custom work. This B4A Sub has to be called synchronously (so will be executed in that thread) : it will modify some data and the thread will continue working with it.
Here is my doubt (and perhaps where I am wrong):
- I think I can't use "raiseEvent","raiseEventFromDifferentThread",.... since they will be executed asynchronously. Is it right?
- If so, how can I directly call a BA Sub from Java?
Thanks in advance