I have used following code for download some files from our internet.
The process is running fine. It is reported following crash report:
What is the problem in my code? Is
isShowing() check before
dismissDialog will solve the prob?
Does your progress dialog actually show up?
Instead of dismissing it you could try using
removeDialog(PROGRESS_DIALOG); to have it cleaned up.
When you do the
you already set the ID for the Dialog to some random or null value.
So when you call to dismiss it, the Application thinks you are crazy.