I am having a problem displayin a ProgressDialog. I hope someone can show me what I am doing wrong...
myProgressDialog = ProgressDialog.show(layout.getContext(),"Please wait...", "Downloading content...", true);
Here I do my stuff
The problem is that the progressDialog is not shown inmediately.
I have tried doing layout.invalidate(), or layout.postInvalidate(), and still the same:
the progressDialog is only shown if, for example, I remove the .dismiss() instruction, and I call the doStuff() again
so, the progressDialog is there, but I dont know how to show it inmediately