Android Guides | Samples

Android.OS.StrictMode.ThreadPolicy.Builder.PenaltyDeath Method

Crash the whole process on violation.

Syntax

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

Remarks

Crash the whole process on violation. This penalty runs at the end of all enabled penalties so you'll still get see logging or other violations before the process dies.

Unlike StrictMode+ThreadPolicy+Builder.PenaltyDeathOnNetwork, this applies to disk reads, disk writes, and network usage if their corresponding detect flags are set.

[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