A thread that runs all the time in the App.


  1. Valten1992

    Valten1992 Active Member

    I'm asking this question because I can't seem to get a straight answer wherever I look and doing this takes a lot of time as I would have to re-write a lot of code to just test it.

    My app has many different activity classes and the average user would go back and forth through them awfully quickly. What I want to do is start a thread on the starting activity that will constantly check the values of certain java objects, whose values would be updated in the other activities.

    What I want to know is if a thread I start on one activity would still be running through and checking these values even I move to another activity?

    Advertisement

Share This Page