Let me tell you the script.
Say that my first activity, which is loading, also creates a thread that will run endlessly in the background.
Now, if I move on to another Office, I assume that the thread that I originally created in the main action will continue to work.
So now, to my main question - in order to manage this background thread from other Acts, is it safe to store a link to this thread in a singleton object?
java android multithreading singleton
xil3
source share