@ThreadSafe public final class StrictModeCompat extends Object
StrictMode without worrying about backwards
compatibility. Calls to this class from unsupported API levels have no effect.| Modifier and Type | Method and Description |
|---|---|
static void |
noteSlowCall(String name)
Notes a slow method call.
|
static void |
setStrictMode(boolean isStrictModeEnabled)
Enables/disables strict mode with default policies to detect all violations and log them.
|
public static void noteSlowCall(String name)
name - tag for the slow call.StrictMode.noteSlowCall(String)public static void setStrictMode(boolean isStrictModeEnabled)
isStrictModeEnabled - true to enable strict mode, false to disable strict mode.