I wrote a program to show a progress bar using the AsyncTask class. I can see in the Log window the progress in increments of 5, but the progress bar does not show anything. The method showProgress() is activated by a button. Here is the MainActivity class:
And here's the layout file:
What is wrong? What is missing? (The Cancel button does not work either, but this is not my main concern now.) I want to see the progress bar animated. Thank you in advance for help! I really need it!