Android.OS.StrictMode.EnableDefaults Method
Enable the recommended StrictMode defaults, with violations just being logged.

Syntax

[Android.Runtime.Register("enableDefaults", "()V", "")]
public static void EnableDefaults ()

Remarks

Enable the recommended StrictMode defaults, with violations just being logged.

This catches disk and network access on the main thread, as well as leaked SQLite cursors and unclosed resources. This is simply a wrapper around StrictMode.SetVmPolicy(.VmPolicy) and StrictMode.SetThreadPolicy(.ThreadPolicy).

[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