StrictMode.ThreadPolicy


public static final class StrictMode.ThreadPolicy
extends Object

java.lang.Object
   ↳ android.os.StrictMode.ThreadPolicy


StrictMode policy applied to a certain thread.

The policy is enabled by StrictMode.setThreadPolicy(ThreadPolicy). The current policy can be retrieved with StrictMode.getThreadPolicy().

Note that multiple penalties may be provided and they're run in order from least to most severe (logging before process death, for example). There's currently no mechanism to choose different penalties for different detected actions.

Summary

Nested classes

class StrictMode.ThreadPolicy.Builder

Creates ThreadPolicy instances. 

Fields

public static final StrictMode.ThreadPolicy LAX

The lax policy which doesn't catch anything.

Public methods

String toString()

Returns a string representation of the object.

Inherited methods

Fields

LAX

Added in API level 9
public static final StrictMode.ThreadPolicy LAX

The lax policy which doesn't catch anything.

Public methods

toString

Added in API level 9
public String toString ()

Returns a string representation of the object.

Returns
String a string representation of the object.