lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 1

WindowManager.BadTokenException

public static class WindowManager.BadTokenException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.view.WindowManager.BadTokenException


Exception that is thrown when trying to add view whose WindowManager.LayoutParams WindowManager.LayoutParams.token is invalid.

Summary

Public constructors

WindowManager.BadTokenException()
WindowManager.BadTokenException(String name)

Inherited methods

Public constructors

WindowManager.BadTokenException

added in API level 1
public WindowManager.BadTokenException ()

WindowManager.BadTokenException

added in API level 1
public WindowManager.BadTokenException (String name)

Parameters
name String