[android-developers] Re: “BadTokenException: Unable to add window; is your activity running?” at showing dialog in PreferenceActivity

2011-09-15 Thread Vivek975
Hi lama, I once had this android.view.WindowManager$BadTokenException when i was trying to load the dialog too early. It was resolved by delaying the showdialog call. U can try it by using Handler().postDelayed() Thanks, vivek On Sep 14, 10:38 pm, lama viny...@gmail.com wrote: Hello Masters!

[android-developers] Screen Blackout while adding Exchange account

2011-09-15 Thread Vivek975
Hi Masters, Server : Microsoft exchange server 2010 Android version : 2.1 I am adding an exchange email account from my android device, it is added without any problem. after that i remove the account and than again trying to add the same account, the screen blacks-out for around 30 sec and

[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