0

I am trying to create an alert dialog popup and have tried several different methods, they all result in this error. "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application"

Any ideas?

Thanks.

baldazan
  • 63
  • 1
  • 4

1 Answers1

0

dialog requires activity context, any other context will throw this exception android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

Sush
  • 3,864
  • 2
  • 17
  • 35