Android Questions and Answers

Explain about the exceptions of Android?

The following are the exceptions that are supported Android

  • InflateException: When an error conditions are occurred, this exception is thrown
    Surface.OutOfResourceException: When a surface is not created or resized, this exception throw
  • SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACETYPE_PUSH_BUFFERS
  • WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.