Java android.os StrictMode fields, constructors, methods, implement or subclass

Example usage for Java android.os StrictMode fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os StrictMode.

The text is from its open source code.

Method

ThreadPolicyallowThreadDiskReads()
A convenience wrapper that takes the current ThreadPolicy from #getThreadPolicy , modifies it to permit disk reads, and sets the new policy with #setThreadPolicy , returning the old policy so you can restore it at the end of a block.
ThreadPolicyallowThreadDiskWrites()
A convenience wrapper that takes the current ThreadPolicy from #getThreadPolicy , modifies it to permit both disk reads & writes, and sets the new policy with #setThreadPolicy , returning the old policy so you can restore it at the end of a block.
voiddisableDeathOnFileUriExposure()
Used by lame internal apps that haven't done the hard work to get themselves off file:// Uris yet.
voidenableDeathOnFileUriExposure()
Used by the framework to make file usage a fatal error.
voidenableDefaults()
Enable the recommended StrictMode defaults, with violations just being logged.
ThreadPolicygetThreadPolicy()
Returns the current thread's policy.
VmPolicygetVmPolicy()
Gets the current VM policy.
voidnoteSlowCall(String name)
For code to note that it's slow.
voidsetThreadPolicy(final ThreadPolicy policy)
Sets the policy for what actions on the current thread should be detected, as well as the penalty if such actions occur.
voidsetVmPolicy(final VmPolicy policy)
Sets the policy for what actions in the VM process (on any thread) should be detected, as well as the penalty if such actions occur.