Constructs a watchdog that checks the UI thread every 5000 milliseconds. EvtPrefix: Prefix of the ApplicationNotResponding and Interrupted event handlers.
Constructs a watchdog that checks the UI thread every given interval. TimeoutInterval: The interval, in milliseconds, between two checks of the UI thread. It is therefore the maximum time the UI may freeze before being reported as ANR. EvtPrefix: Prefix of the ApplicationNotResponding and Interrupted event handlers.
Converts an OutOfMemory error to a Runtime exception, allowing to catch it. The error message ends with OUT_OF_MEMORY. Once this error caught, get the stack trace elements with GetStackTraceElements.
Converts a StackOverflow error to a Runtime exception, allowing to catch it. The error message ends with STACK_OVERFLOW. Once this error caught, get the stack trace elements with GetStackTraceElements.
GetStackTraceElementsAsStackTraceElement()
Returns an array of stack trace elements after an OutOfMemory or StackOverflow error is thrown.