Well I've tried a different approach (instead of starting a thread whose method runs in the service). I've created a class which I initialize within the service, then call the class' Start method which does this:
Dim t As Thread
t.Initialise("")
Dim args(1) As Object
args(0) = "test"
Dim success As Boolean = t.Start(Me, "MyThread", Array As Object(1, "java.lang.Object", args)) ' I'm not sure why I even need three parameters here, no documentation on the subject from what I can find, but I cannot Start a thread without an array containing an int, a string, and an object array it keeps telling me
and the MyThread method looks like
Sub MyThread(a as message)
Log("MyThread")
End Sub
Well the thread 'apparently' starts successfully, no errors returned, but the MyThread is not being called and I get this message in the Log:
Unexpected event (missing RaiseSynchronousEvents): java.lang.Object
Using threads surely can't be this difficult, I'm a thread king within .Net, when I first started using threading years ago it took me all of 30 seconds to get my first thread running, Microsoft made it that difficult. Now after several hours I still haven't got a thread started in Android.
I'm sure it's easy when you know how but the documentation is sparse and not very helpful. Can anybody help here?
Thanks in advance,
Richard