Yes. Create a public variable in the Main module and set it from the Initialize method of the worker class:
B4X:
Sub Initialize
Main.Worker = Me
...
End Sub
You should use CallSubDelayed to call the worker methods. Otherwise they will be executed by the calling thread instead of the background worker thread.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.