Does this mean that I can access the variables in the user interface thread from the workflow, that is, not for the user interface toolkit?
Yes, if they are declared as member variables, you can access them. You can even access values ββin UI elements, such as using getText() in a TextView , you simply cannot update any UI elements.
Do I need to ask any special considerations if the variable is constantly updated,
If they are updated, you may want to synchronize the variables. A good way to do this would be to use AsyncTask and update the variable in onPostExecute() .
If you are new to using AsyncTask , be sure to review the Documents a few times and understand them.
source share