Here is the exception which I am getting while handler try start the Progress Dialog from application
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
at android.view.ViewRoot.setView(ViewRoot.java:531)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
at android.app.Dialog.show(Dialog.java:241)
at android.app.ProgressDialog.show(ProgressDialog.java:107)
at android.app.ProgressDialog.show(ProgressDialog.java:90)
Please suggest solution if anybody knows
Change Your Context To
ActivityName.thisBecause this BadToken Exception ,So In your case you are adding the Progress Dialog to Your Activity Screen but passing the wrong context.