android: showing a progress dialog
Posted
by mtmurdock
on Stack Overflow
See other posts from Stack Overflow
or by mtmurdock
Published on 2010-06-10T18:36:49Z
Indexed on
2010/06/10
21:22 UTC
Read the original article
Hit count: 216
I have looked at the Android API and other posts here on stackoverflow, but have not been able to figure this out.
My app downloads files to the sd card. I would like to pop a "loading..." dialog while the file is downloading and then have it disappear when the download is finished. This is what i came up with using the android API:
ProgressDialog pd = ProgressDialog.show(this,"","Loading. Please wait...",true);
//download file
pd.cancel();
however the dialog doesn't actually show. when i debug it, it claims that it is showing, but it is obviously not on the screen.
what can i do?
© Stack Overflow or respective owner