Android.OS.StrictMode.AllowThreadDiskReads Method
A convenience wrapper that takes the current NoType:android/os/StrictMode$ThreadPolicy;Href=../../../reference/android/os/StrictMode.ThreadPolicy.html from StrictMode.GetThreadPolicy, modifies it to permit disk reads, and sets the new policy with StrictMode.SetThreadPolicy(.ThreadPolicy), returning the old policy so you can restore it at the end of a block.

Syntax

[Android.Runtime.Register("allowThreadDiskReads", "()Landroid/os/StrictMode$ThreadPolicy;", "")]
public static StrictMode.ThreadPolicy AllowThreadDiskReads ()

Returns

Documentation for this section has not yet been entered.

Remarks

A convenience wrapper that takes the current NoType:android/os/StrictMode$ThreadPolicy;Href=../../../reference/android/os/StrictMode.ThreadPolicy.html from StrictMode.GetThreadPolicy, modifies it to permit disk reads, and sets the new policy with StrictMode.SetThreadPolicy(.ThreadPolicy), returning the old policy so you can restore it at the end of a block.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9