[android-developers] WindowManager$BadTokenException

2011-05-04 Thread Vivek Chandrakar
Hi, I am getting WindowManager$BadTokenException when i am trying to launch a popup window after inflating it from a xml layout. The key is if i wait for around 2 sec before launching the popup, it works fine, but when i try to open it immediately it crashes. Does anybody have any clue about this

[android-developers] WindowManager$BadTokenException

2011-05-04 Thread Vivek975
Hi, I am getting WindowManager$BadTokenException when i am trying to launch a popup window after inflating it from a xml layout. The key is if i wait for around 2 sec before launching the popup, it works fine, but when i try to open it immediately it crashes. Does anybody have any clue about this