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?
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: