How to thread in a service module

Jondroid

Member
Licensed User
Longtime User
I'm using successfully a thread in my activity to run a function which otherwise trows an error that this function can not be executed from the main application thread. However I want to use that function now in a service module.

However, it seems that it is impossible to add the threading module to an service module?! I understand that from within a service module it is impossible to modify Activity objects but why is a "thread" considered to be an Activity object?
 
Last edited:

Jondroid

Member
Licensed User
Longtime User
Which function are you calling?
The Thread object is not an "activity object". You should be able to use it from a service.

I'm calling my new library (see the other thread regarding generating keyevents)... maybe I need to look into my code again..

Will look into it agains. Thanks.
 
Upvote 0

synapse

Member
Licensed User
Longtime User
Can anyone help please with declaring a thread within a service module? It is rejected in the process_globals section of the service and ignored if declared in the activity. Sorry to be thick!
 
Upvote 0
Top