Android - Thread.sleep and Handler.postDelayed() freezes animated UI elements
In my activity, my app downloads a list of something from a website via an Http Connection. Before this list of things is displayed on the screen, I have a **Loading...** TextView with a little spinning ProgressBar to indicate that the data is currnetly being downloaded.

I noticed, that if I do any type of `Thread.sleep()` during the process of fetching the data from the web, it freezes the spinning `ProgressBar`.

Even if I put the method in it's own `Handler Runnable` so that it's on it's own thread, the animation freezing still occurs.

Is there anything I can do about this?
Android - Thread.sleep and Handler.postDelayed() freezes animated UI elements
===

In my activity, my app downloads a list of something from a website via an Http Connection. Before this list of things is displayed on the screen, I have a **Loading...** TextView with a little spinning ProgressBar to indicate that the data is currnetly being downloaded.

I noticed, that if I do any type of `Thread.sleep()` during the process of fetching the data from the web, it freezes the spinning `ProgressBar`.

Even if I put the method in it's own `Handler Runnable` so that it's on it's own thread, the animation freezing still occurs.

Is there anything I can do about this?