I have a thread that is being run, and it connects to a web server, the code is on a different thread because I do not want the program to get stopped every time I call the code.
While in the thread, I need to call a method but I need it to be called from the main thread, not sure if there is any way to do this.
If I wasn't very clear (I'm pretty sure I wasn't xD) then here is some pseudo-code:
thread.start(){
<do webcall stuff>
<call method from main thread>
}