Which of the following exception(s) is/are supported by Android? 1) InflateException 2) Surface.OutOfResourceException 3) SurfaceHolder.BadSurfaceTypeException 4) WindowManager.BadTokenException

Options
- 1 and 2
- 3 and 4
- All of the above
- None of these


CORRECT ANSWER : All of the above

Discussion Board
Explanation-

- InflateException: This exception is thrown by an inflater on error conditions.

- Surface.OutOfResourceException: This exception is thrown when a surface couldn't be created or resized.

- SurfaceHolderBadSurfaceTypeException: This exception is thrown from ISurfaceHolder.LockCanvas when called on a Surface whose type is SURFACE_TYPE_PUSH_BUFFERS.

- WindowManagerBadTokenException: This exception is thrown when trying to add view whose WindowManagerLayoutParamsWindowManagerLayoutParams.Token is invalid.


Sapna Ambadkar 03-14-2017 01:52 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement