Android.OS.StrictMode.AllowThreadDiskWrites 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 both disk reads & writes, 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("allowThreadDiskWrites", "()Landroid/os/StrictMode$ThreadPolicy;", "")]
public static StrictMode.ThreadPolicy AllowThreadDiskWrites ()

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 both disk reads & writes, 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