Hello @ChristopheBERNARD , the solution you have provided is perfect.
But I am facing another problem here. Which is completely different.
The scenario is, I have a Master activity which is implementing "TabActivity" class. The master has TabWidget with 4 tab TabSpec.
Then it calls first activity where this ProgressDialog is being fired and it is facing error "Android.Views.WindowManagerBadTokenException" how to resolve this? please help.