progressDialog

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

progressDialog

Postby JJ » Thu Apr 09, 2009 9:11 am

Hi everybody

I am having a problem displayin a ProgressDialog. I hope someone can show me what I am doing wrong...


void doStuff()
{
myProgressDialog = ProgressDialog.show(layout.getContext(),"Please wait...", "Downloading content...", true);

/*
Here I do my stuff
*/
myProgressDialog.dismiss();
}

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


any ideas?
Thanks
JJ
Developer
Developer
 
Posts: 35
Joined: Tue May 13, 2008 1:18 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 8 guests