Android Guides | Samples

Android.OS.StrictMode.ThreadPolicy.Builder.PenaltyDeathOnNetwork Method

Crash the whole process on any network usage.

Syntax

[Android.Runtime.Register("penaltyDeathOnNetwork", "()Landroid/os/StrictMode$ThreadPolicy$Builder;", "")]
public StrictMode+ThreadPolicy+Builder PenaltyDeathOnNetwork ()

Remarks

Crash the whole process on any network usage. Unlike StrictMode+ThreadPolicy+Builder.PenaltyDeath, this penalty runs before anything else. You must still have called StrictMode+ThreadPolicy+Builder.DetectNetwork to enable this.

In the Honeycomb or later SDKs, this is on by default.

[Android Documentation]

Requirements

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