Package dalvik.system

Class BlockGuard

java.lang.Object
dalvik.system.BlockGuard

public final class BlockGuard
extends Object
Mechanism to let threads set restrictions on what code is allowed to do in their thread.

This is meant for applications to prevent certain blocking operations from running on their main event loop (or "UI") threads.

Note that this is all best-effort to catch most accidental mistakes and isn't intended to be a perfect mechanism, nor provide any sort of security.