There is a class AsyncTask , which in the doInBackground method loads the value from the network, and in the onPostExecute method inserts it into the TextView. The problem is that the TextView is multiple, and the values are loaded from different links. It is necessary that when you call the AsyncTask class and in turn fill all TextViews. How to properly implement the task? I tried to put AsyncTask in a loop, but then the doInBackground and onPostExecute start working asynchronously. I also tried to put the doInBackground and onPostExecute methods into the loop separately (and together), but still there is confusion. I tried to explain the problem as clearly as possible.
psCode did not specifically lay out, so as not to further confuse. If without it you can not figure it out, then lay out. If you want to get values for one TextView, then everything works without problems, but as soon as several TextView appear, then chaos begins in the doInBackground method