WindowManager$BadTokenException ????

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

WindowManager$BadTokenException ????

Postby ibtmubarak » Wed Dec 28, 2011 8:54 am

Sometimes i m getting the following crash in android device. how to fix this?

Thanks in advance ...

android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@405cab80 is not valid; is your activity running?
at android.view.ViewRoot.setView(ViewRoot.java:544)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
at android.view.Window$LocalWindowManager.addView(Window.java:430)
at android.app.Dialog.show(Dialog.java:288)
at android.app.AlertDialog$Builder.show(AlertDialog.java:802)
at com.live.android.MyActivity.showDialog(MyActivity.java:1808)
at com.live.android.MyActivity.onError(MyActivity.java:1042)
at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1553)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
mubarak
ibtmubarak
Developer
Developer
 
Posts: 44
Joined: Thu Feb 28, 2008 12:26 pm
Location: Bangalore

Top

Return to General

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest